Constructor and Description |
---|
ComplexOutline()
Creates an empty complex outline (0 pixel thickness).
|
ComplexOutline(int top,
int right,
int bottom,
int left)
Creates a complex outline specifying its thickness for each edge.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
Rectangle rectangle)
Applies the outline on a graphics context.
|
int |
getBottom()
Gets the bottom thickness.
|
int |
getLeft()
Gets the left thickness.
|
int |
getRight()
Gets the right thickness.
|
int |
getTop()
Gets the top thickness.
|
void |
setBottom(int thickness)
Sets the bottom thickness.
|
void |
setLeft(int thickness)
Sets the left thickness.
|
void |
setRight(int thickness)
Sets the right thickness.
|
void |
setTop(int thickness)
Sets the top thickness.
|
void |
unwrap(Rectangle rectangle)
Removes the outline thickness from a rectangle.
|
void |
wrap(Rectangle rectangle)
Adds the outline thickness to a rectangle.
|
public ComplexOutline()
public ComplexOutline(int top, int right, int bottom, int left)
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 void setTop(int thickness)
thickness
- the thickness to set.public int getBottom()
public void setBottom(int thickness)
thickness
- the thickness to set.public int getLeft()
public void setLeft(int thickness)
thickness
- the thickness to set.public int getRight()
public void setRight(int thickness)
thickness
- the thickness to set.public void wrap(Rectangle rectangle)
Outline
public void unwrap(Rectangle rectangle)
Outline