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