public class BlockBorder extends java.lang.Object implements BlockFrame, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private org.jfree.ui.RectangleInsets |
insets
The space reserved for the border.
|
static BlockBorder |
NONE
An empty border.
|
private java.awt.Paint |
paint
The border color.
|
private static long |
serialVersionUID
For serialization.
|
| Constructor and Description |
|---|
BlockBorder()
Creates a default border.
|
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,
java.awt.Paint paint)
Creates a new border with the specified line widths (in black).
|
BlockBorder(java.awt.Paint paint)
Creates a new border with the specified color.
|
BlockBorder(org.jfree.ui.RectangleInsets insets,
java.awt.Paint paint)
Creates a new border.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the border by filling in the reserved space.
|
boolean |
equals(java.lang.Object obj)
Tests this border for equality with an arbitrary instance.
|
org.jfree.ui.RectangleInsets |
getInsets()
Returns the space reserved for the border.
|
java.awt.Paint |
getPaint()
Returns the paint used to draw the border.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
private static final long serialVersionUID
public static final BlockBorder NONE
private org.jfree.ui.RectangleInsets insets
private transient java.awt.Paint paint
public BlockBorder()
public BlockBorder(java.awt.Paint paint)
paint - the color (null not permitted).public BlockBorder(double top,
double left,
double bottom,
double right)
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,
java.awt.Paint paint)
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(org.jfree.ui.RectangleInsets insets,
java.awt.Paint paint)
insets - the border insets (null not permitted).paint - the paint (null not permitted).public org.jfree.ui.RectangleInsets getInsets()
getInsets in interface BlockFramenull).public java.awt.Paint getPaint()
null).public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
draw in interface BlockFrameg2 - the graphics device.area - the area.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
stream - the output stream.java.io.IOException - if there is an I/O error.private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - the input stream.java.io.IOException - if there is an I/O error.java.lang.ClassNotFoundException - if there is a classpath problem.