public class ComplexRectangularBorder extends java.lang.Object implements Border
Constructor and Description |
---|
ComplexRectangularBorder()
Creates an empty complex rectangular border (0 pixel thickness).
|
ComplexRectangularBorder(int top,
int right,
int bottom,
int left)
Creates a complex rectangular border specifying its edges thickness.
|
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 |
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() |
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 this border wrapping from a rectangle.
|
void |
wrap(Rectangle rectangle)
Adds this border wrapping to a rectangle.
|
public ComplexRectangularBorder()
public ComplexRectangularBorder(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)
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