public class RoundedBorder extends java.lang.Object implements Outline
May be associated with RoundedBackground or used on its own.
The corner radius and thickness are stored as a char for heap optimization and therefore cannot exceed
65535.
| Constructor and Description |
|---|
RoundedBorder(int color,
int cornerRadius,
int thickness)
Creates a rounded border specifying its attributes.
|
| 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 |
getColor()
Gets the color.
|
int |
getCornerRadius()
Gets the corner radius.
|
int |
getThickness()
Gets the thickness.
|
int |
hashCode() |
public RoundedBorder(int color,
int cornerRadius,
int thickness)
The given corner radius and thickness are clamped between 0 and Character.MAX_VALUE.
color - the color.cornerRadius - the corner radius.thickness - the border thickness.public int getColor()
public int getCornerRadius()
public int getThickness()
public void apply(Outlineable outlineable)
Outlinepublic void apply(ej.microui.display.GraphicsContext g,
Size size)
Outlinepublic boolean equals(@Nullable
java.lang.Object obj)