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.colorTop - the top color.right - the right thickness.colorRight - the right color.bottom - the bottom thickness.colorBottom - the bottom color.left - the left thickness.colorLeft - the left color.public int getColorTop()
public int getColorBottom()
public int getColorLeft()
public int getColorRight()
public void apply(ej.microui.display.GraphicsContext g,
Size size)
Outlineapply in interface Outlineapply in class FlexibleOutlineg - the graphics context.size - the size to apply on.public boolean equals(@Nullable
java.lang.Object obj)
equals in interface Outlineequals in class FlexibleOutlinepublic int hashCode()
hashCode in interface OutlinehashCode in class FlexibleOutline