public class FlexibleOutline extends java.lang.Object implements Outline
The thicknesses are stored as a char
for heap optimization and therefore cannot exceed
65535
.
Constructor and Description |
---|
FlexibleOutline(int top,
int right,
int bottom,
int left)
Creates a flexible outline specifying its thickness for each edge.
|
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 |
getBottom()
Gets the bottom thickness.
|
int |
getLeft()
Gets the left thickness.
|
int |
getRight()
Gets the right thickness.
|
int |
getTop()
Gets the top thickness.
|
int |
hashCode() |
public FlexibleOutline(int top, int right, int bottom, int left)
The given thickness values are clamped between 0
and Character.MAX_VALUE
.
top
- the top thickness to set.right
- the right thickness to set.bottom
- the bottom thickness to set.left
- the left thickness to set.public int getTop()
public int getBottom()
public int getLeft()
public int getRight()
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)