|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.ArcDialFrame
public class ArcDialFrame
A standard frame for the DialPlot class.
| Constructor Summary | |
|---|---|
ArcDialFrame()
Creates a new instance of ArcDialFrame that spans
180 degrees. |
|
ArcDialFrame(double startAngle,
double extent)
Creates a new instance of ArcDialFrame that spans
the arc specified. |
|
| Method Summary | |
|---|---|
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 (never null). |
double |
getExtent()
Returns the extent. |
java.awt.Paint |
getForegroundPaint()
Returns the foreground paint. |
double |
getInnerRadius()
Returns the inner radius, relative to the framing rectangle. |
double |
getOuterRadius()
Returns the outer radius, relative to the framing rectangle. |
protected java.awt.Shape |
getOuterWindow(java.awt.geom.Rectangle2D frame)
Returns the outer window. |
double |
getStartAngle()
Returns the start angle. |
java.awt.Stroke |
getStroke()
Returns the stroke. |
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. |
void |
setBackgroundPaint(java.awt.Paint paint)
Sets the background paint and sends a DialLayerChangeEvent to
all registered listeners. |
void |
setExtent(double extent)
Sets the extent 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 |
setInnerRadius(double radius)
Sets the inner radius and sends a DialLayerChangeEvent to
all registered listeners. |
void |
setOuterRadius(double radius)
Sets the outer radius and sends a DialLayerChangeEvent to
all registered listeners. |
void |
setStartAngle(double angle)
Sets the start angle 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. |
| Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer |
|---|
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.chart.plot.dial.DialLayer |
|---|
addChangeListener, hasListener, isVisible, removeChangeListener |
| Constructor Detail |
|---|
public ArcDialFrame()
ArcDialFrame that spans
180 degrees.
public ArcDialFrame(double startAngle,
double extent)
ArcDialFrame that spans
the arc specified.
startAngle - the startAngle (in degrees).extent - the extent of the arc (in degrees, counter-clockwise).| Method Detail |
|---|
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 double getInnerRadius()
setInnerRadius(double)public void setInnerRadius(double radius)
DialLayerChangeEvent to
all registered listeners.
radius - the inner radius.getInnerRadius()public double getOuterRadius()
setOuterRadius(double)public void setOuterRadius(double radius)
DialLayerChangeEvent to
all registered listeners.
radius - the outer radius.getOuterRadius()public double getStartAngle()
setStartAngle(double)public void setStartAngle(double angle)
DialLayerChangeEvent to
all registered listeners.
angle - the angle.getStartAngle()public double getExtent()
setExtent(double)public void setExtent(double extent)
DialLayerChangeEvent to
all registered listeners.
extent - the extent.getExtent()public java.awt.Shape getWindow(java.awt.geom.Rectangle2D frame)
getWindow in interface DialFrameframe - the reference frame (null not permitted).
protected java.awt.Shape getOuterWindow(java.awt.geom.Rectangle2D frame)
frame - the frame.
public void draw(java.awt.Graphics2D g2,
DialPlot plot,
java.awt.geom.Rectangle2D frame,
java.awt.geom.Rectangle2D view)
draw in interface DialLayerg2 - the graphics target.plot - the plot.frame - the dial's reference frame.view - the dial's view rectangle.public boolean isClippedToWindow()
false to indicate that this dial layer is not
clipped to the dial window.
isClippedToWindow in interface DialLayerfalse.public boolean equals(java.lang.Object obj)
equals in class AbstractDialLayerobj - the object (null permitted).
public int hashCode()
hashCode in class AbstractDialLayer
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDialLayerjava.lang.CloneNotSupportedException - if any attribute of this instance
cannot be cloned.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||