public class FlexibleRectangularMulticoloredBorder extends java.lang.Object implements Outline
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.
|
void |
apply(Outlineable outlineable)
Removes the thickness of this outline from the given object.
|
boolean |
equals(java.lang.Object obj) |
int |
getBottom()
Gets the bottom thickness.
|
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 |
getLeft()
Gets the left thickness.
|
int |
getRight()
Gets the right thickness.
|
int |
getTop()
Gets the top thickness.
|
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 int getTop()
public int getBottom()
public int getLeft()
public int getRight()
public void apply(Outlineable outlineable)
Outline
public void apply(ej.microui.display.GraphicsContext g, Size size)
Outline
public boolean equals(@Nullable java.lang.Object obj)