public class SimpleRoundedBorder extends java.lang.Object implements Border
May be associated with SimpleRoundedPlainBackground
or used on its own.
Constructor and Description |
---|
SimpleRoundedBorder()
Creates a simple rounded border.
|
SimpleRoundedBorder(int radius,
int thickness)
Creates a simple rounded border specifying its attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle bounds,
int color)
Applies the border on a graphics context.
|
boolean |
equals(java.lang.Object obj) |
int |
getRadius()
Gets the border radius.
|
int |
getThickness()
Gets the thickness.
|
int |
hashCode() |
void |
setRadius(int radius)
Sets the border radius.
|
void |
setThickness(int thickness)
Sets the thickness.
|
void |
unwrap(Rectangle rectangle)
Removes this border wrapping from a rectangle.
|
void |
wrap(Rectangle rectangle)
Adds this border wrapping to a rectangle.
|
public SimpleRoundedBorder()
public SimpleRoundedBorder(int radius, int thickness)
radius
- the border radius to set.thickness
- the border thickness to set.public void setThickness(int thickness)
thickness
- the thickness to set.public int getThickness()
public void setRadius(int radius)
radius
- the border radius to set.public int getRadius()
public void wrap(Rectangle rectangle)
Border
public void unwrap(Rectangle rectangle)
Border
public void apply(ej.microui.display.GraphicsContext g, Rectangle bounds, int color)
Border
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object