public class RoundedBorder extends java.lang.Object implements Outline
May be associated with RoundedBackground
or used on its own.
The thickness and corner radius 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 getThickness()
public int getCornerRadius()
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)