org.jfree.chart.plot.dial
Class StandardDialFrame
- Cloneable, DialFrame, DialLayer, PublicCloneable, Serializable, DialLayer
implements DialFrame, Cloneable, PublicCloneable, Serializable
A simple circular frame for the
DialPlot
class.
StandardDialFrame
public StandardDialFrame()
Creates a new instance of StandardDialFrame
.
draw
public void draw(Graphics2D g2,
DialPlot plot,
Rectangle2D frame,
Rectangle2D view)
Draws the frame. This method is called by the
DialPlot
class,
you shouldn't need to call it directly.
- draw in interface DialLayer
g2
- the graphics target (null
not permitted).plot
- the plot (null
not permitted).frame
- the frame (null
not permitted).view
- the view (null
not permitted).
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- equals in interface AbstractDialLayer
obj
- the object (null
permitted).
getBackgroundPaint
public Paint getBackgroundPaint()
Returns the background paint.
- The background paint (never
null
).
getForegroundPaint
public Paint getForegroundPaint()
Returns the foreground paint.
- The foreground paint (never
null
).
getRadius
public double getRadius()
Returns the radius, relative to the framing rectangle.
getStroke
public Stroke getStroke()
Returns the stroke for the frame.
getWindow
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.
- getWindow in interface DialFrame
frame
- the reference frame (null
not permitted).
- The shape of the dial's window.
setBackgroundPaint
public void setBackgroundPaint(Paint paint)
paint
- the paint (null
not permitted).
setForegroundPaint
public void setForegroundPaint(Paint paint)
paint
- the paint (null
not permitted).
setRadius
public void setRadius(double radius)
radius
- the radius (must be positive).
setStroke
public void setStroke(Stroke stroke)
stroke
- the stroke (null
not permitted).