Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.ArcDialFrame
public class ArcDialFrame
extends AbstractDialLayer
implements DialFrame, Cloneable, PublicCloneable, Serializable
DialPlot
class.
Constructor Summary | |
| |
|
Method Summary | |
Object |
|
void | |
boolean |
|
Paint |
|
double |
|
Paint |
|
double |
|
double |
|
protected Shape |
|
double |
|
Stroke |
|
Shape |
|
int |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer | |
addChangeListener , clone , equals , hasListener , hashCode , isVisible , notifyListeners , removeChangeListener , setVisible |
public ArcDialFrame(double startAngle, double extent)
Creates a new instance ofArcDialFrame
that spans the arc specified.
- Parameters:
startAngle
- the startAngle (in degrees).extent
- the extent of the arc (in degrees, counter-clockwise).
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDialLayer
- Returns:
- A clone.
public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the frame.
- Parameters:
g2
- the graphics target.plot
- the plot.frame
- the dial's reference frame.view
- the dial's view rectangle.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Overrides:
- equals in interface AbstractDialLayer
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public Paint getBackgroundPaint()
Returns the background paint (nevernull
).
- Returns:
- The background paint.
- See Also:
setBackgroundPaint(Paint)
public double getExtent()
Returns the extent.
- Returns:
- The extent.
- See Also:
setExtent(double)
public Paint getForegroundPaint()
Returns the foreground paint.
- Returns:
- The foreground paint (never
null
).
- See Also:
setForegroundPaint(Paint)
public double getInnerRadius()
Returns the inner radius, relative to the framing rectangle.
- Returns:
- The inner radius.
- See Also:
setInnerRadius(double)
public double getOuterRadius()
Returns the outer radius, relative to the framing rectangle.
- Returns:
- The outer radius.
- See Also:
setOuterRadius(double)
protected Shape getOuterWindow(Rectangle2D frame)
Returns the outer window.
- Parameters:
frame
- the frame.
- Returns:
- The outer window.
public double getStartAngle()
Returns the start angle.
- Returns:
- The start angle.
- See Also:
setStartAngle(double)
public Stroke getStroke()
Returns the stroke.
- Returns:
- The stroke (never
null
).
- See Also:
setStroke(Stroke)
public Shape getWindow(Rectangle2D frame)
Returns the shape for the window for this dial. Some dial layers will request that their drawing be clipped within this window.
- Parameters:
frame
- the reference frame (null
not permitted).
- Returns:
- The shape of the dial's window.
public int hashCode()
Returns a hash code for this instance.
- Overrides:
- hashCode in interface AbstractDialLayer
- Returns:
- The hash code.
public boolean isClippedToWindow()
Returnsfalse
to indicate that this dial layer is not clipped to the dial window.
- Specified by:
- isClippedToWindow in interface DialLayer
- Returns:
false
.
public void setBackgroundPaint(Paint paint)
Sets the background paint and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
paint
- the paint (null
not permitted).
- See Also:
getBackgroundPaint()
public void setExtent(double extent)
Sets the extent and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
extent
- the extent.
- See Also:
getExtent()
public void setForegroundPaint(Paint paint)
Sets the foreground paint and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
paint
- the paint (null
not permitted).
- See Also:
getForegroundPaint()
public void setInnerRadius(double radius)
Sets the inner radius and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
radius
- the inner radius.
- See Also:
getInnerRadius()
public void setOuterRadius(double radius)
Sets the outer radius and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
radius
- the outer radius.
- See Also:
getOuterRadius()
public void setStartAngle(double angle)
Sets the start angle and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
angle
- the angle.
- See Also:
getStartAngle()
public void setStroke(Stroke stroke)
Sets the stroke and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
stroke
- the stroke (null
not permitted).
- See Also:
getStroke()