public class FlexibleRectangularBorder extends FlexibleOutline
The thicknesses are stored as a char
for heap optimization and therefore cannot exceed
65535
.
Constructor and Description |
---|
FlexibleRectangularBorder(int color,
int top,
int right,
int bottom,
int left)
Creates a flexible rectangular border specifying its color and edges thickness.
|
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 |
getColor()
Gets the color.
|
int |
hashCode() |
public FlexibleRectangularBorder(int color, int top, int right, int bottom, int left)
The given thickness values are clamped between 0
and Character.MAX_VALUE
.
color
- the color.top
- the top thickness.right
- the right thickness.bottom
- the bottom thickness.left
- the left thickness.public int getColor()
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