public class LineBorder extends java.lang.Object implements BlockFrame, java.io.Serializable
AbstractBlock.| Modifier and Type | Field and Description |
|---|---|
private org.jfree.ui.RectangleInsets |
insets
The insets.
|
private java.awt.Paint |
paint
The line color.
|
(package private) static long |
serialVersionUID
For serialization.
|
private java.awt.Stroke |
stroke
The line stroke.
|
| Constructor and Description |
|---|
LineBorder()
Creates a default border.
|
LineBorder(java.awt.Paint paint,
java.awt.Stroke stroke,
org.jfree.ui.RectangleInsets insets)
Creates a new border with the specified color.
|
| 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 (in black).
|
boolean |
equals(java.lang.Object obj)
Tests this border for equality with an arbitrary instance.
|
org.jfree.ui.RectangleInsets |
getInsets()
Returns the insets.
|
java.awt.Paint |
getPaint()
Returns the paint.
|
java.awt.Stroke |
getStroke()
Returns the stroke.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
static final long serialVersionUID
private transient java.awt.Paint paint
private transient java.awt.Stroke stroke
private org.jfree.ui.RectangleInsets insets
public LineBorder()
public LineBorder(java.awt.Paint paint,
java.awt.Stroke stroke,
org.jfree.ui.RectangleInsets insets)
paint - the color (null not permitted).stroke - the border stroke (null not permitted).insets - the insets (null not permitted).public java.awt.Paint getPaint()
null).public org.jfree.ui.RectangleInsets getInsets()
getInsets in interface BlockFramenull).public java.awt.Stroke getStroke()
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.