public class

BlockBorder

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

Class Overview

A border for a block. This class is immutable.

Summary

Fields
public static final BlockBorder NONE An empty border.
Public Constructors
BlockBorder()
Creates a default border.
BlockBorder(Paint paint)
Creates a new border with the specified color.
BlockBorder(double top, double left, double bottom, double right)
Creates a new border with the specified line widths (in black).
BlockBorder(double top, double left, double bottom, double right, Paint paint)
Creates a new border with the specified line widths (in black).
BlockBorder(RectangleInsets insets, Paint paint)
Creates a new border.
Public Methods
void draw(Graphics2D g2, Rectangle2D area)
Draws the border by filling in the reserved space.
boolean equals(Object obj)
Tests this border for equality with an arbitrary instance.
RectangleInsets getInsets()
Returns the space reserved for the border.
Paint getPaint()
Returns the paint used to draw the border.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.block.BlockFrame

Fields

public static final BlockBorder NONE

An empty border.

Public Constructors

public BlockBorder ()

Creates a default border.

public BlockBorder (Paint paint)

Creates a new border with the specified color.

Parameters
paint the color (null not permitted).

public BlockBorder (double top, double left, double bottom, double right)

Creates a new border with the specified line widths (in black).

Parameters
top the width of the top border.
left the width of the left border.
bottom the width of the bottom border.
right the width of the right border.

public BlockBorder (double top, double left, double bottom, double right, Paint paint)

Creates a new border with the specified line widths (in black).

Parameters
top the width of the top border.
left the width of the left border.
bottom the width of the bottom border.
right the width of the right border.
paint the border paint (null not permitted).

public BlockBorder (RectangleInsets insets, Paint paint)

Creates a new border.

Parameters
insets the border insets (null not permitted).
paint the paint (null not permitted).

Public Methods

public void draw (Graphics2D g2, Rectangle2D area)

Draws the border by filling in the reserved space.

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 space reserved for the border.

Returns
  • The space (never null).

public Paint getPaint ()

Returns the paint used to draw the border.

Returns
  • The paint (never null).