Constructor and Description |
---|
SimpleOutline()
Creates an empty simple outline (0 pixel thickness).
|
SimpleOutline(int thickness)
Creates a simple outline specifying its thickness.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle rectangle)
Applies the outline on a graphics context.
|
boolean |
equals(java.lang.Object obj) |
int |
getThickness()
Gets the thickness.
|
int |
hashCode() |
void |
setThickness(int thickness)
Sets the thickness.
|
void |
unwrap(Rectangle rectangle)
Removes the outline thickness from a rectangle.
|
void |
wrap(Rectangle rectangle)
Adds the outline thickness to a rectangle.
|
public SimpleOutline()
public SimpleOutline(int thickness)
thickness
- the thickness to set.public void setThickness(int thickness)
thickness
- the thickness to set.public int getThickness()
public void wrap(Rectangle rectangle)
Outline
public void unwrap(Rectangle rectangle)
Outline
public void apply(ej.microui.display.GraphicsContext g, Rectangle rectangle)
Outline
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object