Constructor and Description |
---|
SimpleRectangularBorder()
Creates an empty simple rectangular border (0 pixel thickness).
|
SimpleRectangularBorder(int thickness)
Creates a simple rectangular border specifying its thickness.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(GraphicsContext g,
Rectangle bounds,
int color)
Applies the border 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 this border wrapping from a rectangle.
|
void |
wrap(Rectangle rectangle)
Adds this border wrapping to a rectangle.
|
public SimpleRectangularBorder()
public SimpleRectangularBorder(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)
Border
public void unwrap(Rectangle rectangle)
Border
public void apply(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