public class StandardDialFrame extends AbstractDialLayer implements DialFrame, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
DialPlot class.| Modifier and Type | Field and Description |
|---|---|
private java.awt.Paint |
backgroundPaint
The color used for the front of the panel.
|
private java.awt.Paint |
foregroundPaint
The color used for the border around the window.
|
private double |
radius
The outer radius, relative to the framing rectangle.
|
(package private) static long |
serialVersionUID
For serialization.
|
private java.awt.Stroke |
stroke
The stroke for drawing the frame outline.
|
| Constructor and Description |
|---|
StandardDialFrame()
Creates a new instance of
StandardDialFrame. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of this instance.
|
void |
draw(java.awt.Graphics2D g2,
DialPlot plot,
java.awt.geom.Rectangle2D frame,
java.awt.geom.Rectangle2D view)
Draws the frame.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
java.awt.Paint |
getBackgroundPaint()
Returns the background paint.
|
java.awt.Paint |
getForegroundPaint()
Returns the foreground paint.
|
double |
getRadius()
Returns the radius, relative to the framing rectangle.
|
java.awt.Stroke |
getStroke()
Returns the stroke for the frame.
|
java.awt.Shape |
getWindow(java.awt.geom.Rectangle2D frame)
Returns the shape for the window for this dial.
|
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
isClippedToWindow()
Returns
false to indicate that this dial layer is not
clipped to the dial window. |
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
void |
setBackgroundPaint(java.awt.Paint paint)
Sets the background paint and sends a
DialLayerChangeEvent to
all registered listeners. |
void |
setForegroundPaint(java.awt.Paint paint)
Sets the foreground paint and sends a
DialLayerChangeEvent to
all registered listeners. |
void |
setRadius(double radius)
Sets the radius and sends a
DialLayerChangeEvent to all
registered listeners. |
void |
setStroke(java.awt.Stroke stroke)
Sets the stroke and sends a
DialLayerChangeEvent to all
registered listeners. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisiblefinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChangeListener, hasListener, isVisible, removeChangeListenerstatic final long serialVersionUID
private double radius
private transient java.awt.Paint backgroundPaint
private transient java.awt.Paint foregroundPaint
private transient java.awt.Stroke stroke
public StandardDialFrame()
StandardDialFrame.public double getRadius()
setRadius(double)public void setRadius(double radius)
DialLayerChangeEvent to all
registered listeners.radius - the radius (must be positive).getRadius()public java.awt.Paint getBackgroundPaint()
null).setBackgroundPaint(Paint)public void setBackgroundPaint(java.awt.Paint paint)
DialLayerChangeEvent to
all registered listeners.paint - the paint (null not permitted).getBackgroundPaint()public java.awt.Paint getForegroundPaint()
null).setForegroundPaint(Paint)public void setForegroundPaint(java.awt.Paint paint)
DialLayerChangeEvent to
all registered listeners.paint - the paint (null not permitted).getForegroundPaint()public java.awt.Stroke getStroke()
null).setStroke(Stroke)public void setStroke(java.awt.Stroke stroke)
DialLayerChangeEvent to all
registered listeners.stroke - the stroke (null not permitted).getStroke()public java.awt.Shape getWindow(java.awt.geom.Rectangle2D frame)
public boolean isClippedToWindow()
false to indicate that this dial layer is not
clipped to the dial window.isClippedToWindow in interface DialLayerpublic void draw(java.awt.Graphics2D g2,
DialPlot plot,
java.awt.geom.Rectangle2D frame,
java.awt.geom.Rectangle2D view)
DialPlot class,
you shouldn't need to call it directly.public boolean equals(java.lang.Object obj)
equals in class AbstractDialLayerobj - the object (null permitted).public int hashCode()
hashCode in class AbstractDialLayerpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDialLayerjava.lang.CloneNotSupportedException - if any of the frame's attributes
cannot be cloned.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.