public class ComplexRectangularColoredBorder extends ComplexRectangularBorder
Each edge color can be customized.
Constructor and Description |
---|
ComplexRectangularColoredBorder()
Creates an empty complex rectangular border (0 pixel thickness).
|
ComplexRectangularColoredBorder(int top,
int colorTop,
int right,
int colorRight,
int bottom,
int colorBottom,
int left,
int colorLeft)
Creates a complex rectangular border specifying its edges thickness and color.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle bounds,
int color)
Applies the border on a graphics context.
|
int |
getColorBottom()
Gets the bottom color.
|
int |
getColorLeft()
Gets the left color.
|
int |
getColorRight()
Gets the right color.
|
int |
getColorTop()
Gets the top color.
|
void |
setBottom(int thickness,
int color)
Sets the bottom border properties: thickness and color.
|
void |
setColorBottom(int color)
Sets the bottom color.
|
void |
setColorLeft(int color)
Sets the left color.
|
void |
setColorRight(int color)
Sets the right color.
|
void |
setColorTop(int color)
Sets the top color.
|
void |
setLeft(int thickness,
int color)
Sets the left border properties: thickness and color.
|
void |
setRight(int thickness,
int color)
Sets the right border properties: thickness and color.
|
void |
setTop(int thickness,
int color)
Sets the top border properties: thickness and color.
|
public ComplexRectangularColoredBorder()
public ComplexRectangularColoredBorder(int top, int colorTop, int right, int colorRight, int bottom, int colorBottom, int left, int colorLeft)
top
- the top thickness to set.colorTop
- the top color to set.right
- the right thickness to set.colorRight
- the right color to set.bottom
- the bottom thickness to set.colorBottom
- the bottom color to set.left
- the left thickness to set.colorLeft
- the left color to set.public int getColorTop()
public void setColorTop(int color)
color
- the color to set.public void setTop(int thickness, int color)
thickness
- the thickness to set.color
- the color to set.public int getColorBottom()
public void setColorBottom(int color)
color
- the color to set.public void setBottom(int thickness, int color)
thickness
- the thickness to set.color
- the color to set.public int getColorLeft()
public void setColorLeft(int color)
color
- the color to set.public void setLeft(int thickness, int color)
thickness
- the thickness to set.color
- the color to set.public int getColorRight()
public void setColorRight(int color)
color
- the color to set.public void setRight(int thickness, int color)
thickness
- the thickness to set.color
- the color to set.public void apply(ej.microui.display.GraphicsContext g, Rectangle bounds, int color)
Border
apply
in interface Border
apply
in class ComplexRectangularBorder
g
- the graphics context.bounds
- the available rectangle.color
- the border color.