org.jfree.chart.plot.dial
public class StandardDialFrame extends AbstractDialLayer implements DialFrame, Cloneable, PublicCloneable, Serializable
Since: 1.0.7
| Constructor Summary | |
|---|---|
| StandardDialFrame()
Creates a new instance of StandardDialFrame. | |
| Method Summary | |
|---|---|
| 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.
|
StandardDialFrame.Returns: A clone.
Throws: CloneNotSupportedException if any of the frame's attributes cannot be cloned.
Parameters: 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).
Parameters: obj the object (null permitted).
Returns: A boolean.
Returns: The background paint (never null).
See Also: setBackgroundPaint
Returns: The foreground paint (never null).
See Also: setForegroundPaint
Returns: The radius.
See Also: StandardDialFrame
Returns: The stroke (never null).
See Also: setStroke
Parameters: frame the reference frame (null not permitted).
Returns: The shape of the dial's window.
Returns: The hash code.
false to indicate that this dial layer is not
clipped to the dial window.
Returns: A boolean.
Parameters: paint the paint (null not permitted).
See Also: getBackgroundPaint
Parameters: paint the paint (null not permitted).
See Also: getForegroundPaint
Parameters: radius the radius (must be positive).
See Also: getRadius
Parameters: stroke the stroke (null not permitted).
See Also: getStroke