Package org.jfree.chart.block
Class LineBorder
- java.lang.Object
-
- org.jfree.chart.block.LineBorder
-
- All Implemented Interfaces:
Serializable
,BlockFrame
public class LineBorder extends Object implements BlockFrame, Serializable
A line border for anyAbstractBlock
.- Since:
- 1.0.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineBorder()
Creates a default border.LineBorder(Paint paint, Stroke stroke, org.jfree.ui.RectangleInsets insets)
Creates a new border with the specified color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space (in black).boolean
equals(Object obj)
Tests this border for equality with an arbitrary instance.org.jfree.ui.RectangleInsets
getInsets()
Returns the insets.Paint
getPaint()
Returns the paint.Stroke
getStroke()
Returns the stroke.
-
-
-
Method Detail
-
getPaint
public Paint getPaint()
Returns the paint.- Returns:
- The paint (never
null
).
-
getInsets
public org.jfree.ui.RectangleInsets getInsets()
Returns the insets.- Specified by:
getInsets
in interfaceBlockFrame
- Returns:
- The insets (never
null
).
-
getStroke
public Stroke getStroke()
Returns the stroke.- Returns:
- The stroke (never
null
).
-
draw
public void draw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space (in black).- Specified by:
draw
in interfaceBlockFrame
- Parameters:
g2
- the graphics device.area
- the area.
-
-