org.jfree.chart.block

Class LineBorder

public class LineBorder extends Object implements BlockFrame, Serializable

A line border for any AbstractBlock.

Since: 1.0.5

Constructor Summary
LineBorder()
Creates a default border.
LineBorder(Paint paint, Stroke stroke, RectangleInsets insets)
Creates a new border with the specified color.
Method Summary
voiddraw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space (in black).
booleanequals(Object obj)
Tests this border for equality with an arbitrary instance.
RectangleInsetsgetInsets()
Returns the insets.
PaintgetPaint()
Returns the paint.
StrokegetStroke()
Returns the stroke.

Constructor Detail

LineBorder

public LineBorder()
Creates a default border.

LineBorder

public LineBorder(Paint paint, Stroke stroke, RectangleInsets insets)
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 Detail

draw

public void draw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space (in black).

Parameters: g2 the graphics device. area the area.

equals

public boolean equals(Object obj)
Tests this border for equality with an arbitrary instance.

Parameters: obj the object (null permitted).

Returns: A boolean.

getInsets

public RectangleInsets getInsets()
Returns the insets.

Returns: The insets (never null).

getPaint

public Paint getPaint()
Returns the paint.

Returns: The paint (never null).

getStroke

public Stroke getStroke()
Returns the stroke.

Returns: The stroke (never null).

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.