public class FlexibleRectangularMulticoloredBorder extends FlexibleOutline
Each edge color can be customized.
The thicknesses are stored as a char
for heap optimization and therefore cannot exceed
65535
.
Constructor and Description |
---|
FlexibleRectangularMulticoloredBorder(int top,
int colorTop,
int right,
int colorRight,
int bottom,
int colorBottom,
int left,
int colorLeft)
Creates a flexible rectangular border specifying its edges thickness and color.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Size size)
Applies the outline on a graphics context.
|
boolean |
equals(java.lang.Object obj) |
int |
getColorBottom()
Gets the bottom color.
|
int |
getColorLeft()
Gets the left color.
|
int |
getColorRight()
Gets the right color.
|
int |
getColorTop()
Gets the top color.
|
int |
hashCode() |
public FlexibleRectangularMulticoloredBorder(int top, int colorTop, int right, int colorRight, int bottom, int colorBottom, int left, int colorLeft)
The given thickness values are clamped between 0
and Character.MAX_VALUE
.
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 int getColorBottom()
public int getColorLeft()
public int getColorRight()
public void apply(ej.microui.display.GraphicsContext g, Size size)
Outline
apply
in interface Outline
apply
in class FlexibleOutline
g
- the graphics context.size
- the size to apply on.public boolean equals(@Nullable java.lang.Object obj)
equals
in interface Outline
equals
in class FlexibleOutline
public int hashCode()
hashCode
in interface Outline
hashCode
in class FlexibleOutline