public class

LineBorder

extends Object
implements Serializable BlockFrame
java.lang.Object
   ↳ org.jfree.chart.block.LineBorder

Class Overview

A line border for any AbstractBlock.

Summary

Public Constructors
LineBorder()
Creates a default border.
LineBorder(Paint paint, Stroke stroke, RectangleInsets insets)
Creates a new border with the specified color.
Public Methods
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.
RectangleInsets getInsets()
Returns the insets.
Paint getPaint()
Returns the paint.
Stroke getStroke()
Returns the stroke.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.block.BlockFrame

Public Constructors

public LineBorder ()

Creates a default border.

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).

Public Methods

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.

public boolean equals (Object obj)

Tests this border for equality with an arbitrary instance.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public RectangleInsets getInsets ()

Returns the insets.

Returns
  • The insets (never null).

public Paint getPaint ()

Returns the paint.

Returns
  • The paint (never null).

public Stroke getStroke ()

Returns the stroke.

Returns
  • The stroke (never null).