org.jfree.chart.block
public class BlockBorder extends Object implements BlockFrame, Serializable
Field Summary | |
---|---|
static BlockBorder | NONE An empty border. |
Constructor Summary | |
---|---|
BlockBorder()
Creates a default border. | |
BlockBorder(Paint paint)
Creates a new border with the specified color.
| |
BlockBorder(double top, double left, double bottom, double right)
Creates a new border with the specified line widths (in black).
| |
BlockBorder(double top, double left, double bottom, double right, Paint paint)
Creates a new border with the specified line widths (in black).
| |
BlockBorder(RectangleInsets insets, Paint paint)
Creates a new border.
|
Method Summary | |
---|---|
void | draw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space.
|
boolean | equals(Object obj)
Tests this border for equality with an arbitrary instance.
|
RectangleInsets | getInsets()
Returns the space reserved for the border.
|
Paint | getPaint()
Returns the paint used to draw the border.
|
Parameters: paint the color (null
not permitted).
Parameters: top the width of the top border. left the width of the left border. bottom the width of the bottom border. right the width of the right border.
Parameters: top the width of the top border. left the width of the left border. bottom the width of the bottom border. right the width of the right border. paint the border paint (null
not permitted).
Parameters: insets the border insets (null
not permitted). paint the paint (null
not permitted).
Parameters: g2 the graphics device. area the area.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The space (never null
).
Returns: The paint (never null
).