java.lang.Object
org.jfree.chart.block.LineBorder
- All Implemented Interfaces:
Serializable
,BlockFrame
A line border for any
AbstractBlock
.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a default border.LineBorder
(Paint paint, Stroke stroke, RectangleInsets insets) Creates a new border with the specified color. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g2, Rectangle2D area) Draws the border by filling in the reserved space (in black).boolean
Tests this border for equality with an arbitrary instance.Returns the insets.getPaint()
Returns the paint.Returns the stroke.
-
Constructor Details
-
LineBorder
public LineBorder()Creates a default border. -
LineBorder
Creates a new border with the specified color.- Parameters:
paint
- the color (null
not permitted).stroke
- the border stroke (null
not permitted).insets
- the insets (null
not permitted).
-
-
Method Details
-
getPaint
Returns the paint.- Returns:
- The paint (never
null
).
-
getInsets
Returns the insets.- Specified by:
getInsets
in interfaceBlockFrame
- Returns:
- The insets (never
null
).
-
getStroke
Returns the stroke.- Returns:
- The stroke (never
null
).
-
draw
Draws the border by filling in the reserved space (in black).- Specified by:
draw
in interfaceBlockFrame
- Parameters:
g2
- the graphics device.area
- the area.
-
equals
Tests this border for equality with an arbitrary instance.
-