public class StandardDialFrame extends AbstractDialLayer implements DialFrame, Cloneable, org.jfree.util.PublicCloneable, Serializable
DialPlot
class.Constructor and Description |
---|
StandardDialFrame()
Creates a new instance of
StandardDialFrame . |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a clone of this instance.
|
void |
draw(Graphics2D g2,
DialPlot plot,
Rectangle2D frame,
Rectangle2D view)
Draws the frame.
|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
Paint |
getBackgroundPaint()
Returns the background paint.
|
Paint |
getForegroundPaint()
Returns the foreground paint.
|
double |
getRadius()
Returns the radius, relative to the framing rectangle.
|
Stroke |
getStroke()
Returns the stroke for the frame.
|
Shape |
getWindow(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. |
void |
setBackgroundPaint(Paint paint)
Sets the background paint and sends a
DialLayerChangeEvent to
all registered listeners. |
void |
setForegroundPaint(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(Stroke stroke)
Sets the stroke and sends a
DialLayerChangeEvent to all
registered listeners. |
addChangeListener, hasListener, isVisible, removeChangeListener, setVisible
getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, hasListener, isVisible, removeChangeListener
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 Paint getBackgroundPaint()
null
).setBackgroundPaint(Paint)
public void setBackgroundPaint(Paint paint)
DialLayerChangeEvent
to
all registered listeners.paint
- the paint (null
not permitted).getBackgroundPaint()
public Paint getForegroundPaint()
null
).setForegroundPaint(Paint)
public void setForegroundPaint(Paint paint)
DialLayerChangeEvent
to
all registered listeners.paint
- the paint (null
not permitted).getForegroundPaint()
public Stroke getStroke()
null
).setStroke(Stroke)
public void setStroke(Stroke stroke)
DialLayerChangeEvent
to all
registered listeners.stroke
- the stroke (null
not permitted).getStroke()
public Shape getWindow(Rectangle2D frame)
public boolean isClippedToWindow()
false
to indicate that this dial layer is not
clipped to the dial window.isClippedToWindow
in interface DialLayer
public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
DialPlot
class,
you shouldn't need to call it directly.public boolean equals(Object obj)
equals
in class AbstractDialLayer
obj
- the object (null
permitted).public int hashCode()
hashCode
in class AbstractDialLayer
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDialLayer
CloneNotSupportedException
- if any of the frame's attributes
cannot be cloned.Jas4pp 1.5 © Java Analysis Studio for Particle Physics