public class

ArcDialFrame

extends AbstractDialLayer
implements Serializable Cloneable DialFrame
java.lang.Object
   ↳ org.jfree.chart.plot.dial.AbstractDialLayer
     ↳ org.jfree.chart.plot.dial.ArcDialFrame

Class Overview

A standard frame for the DialPlot class.

Summary

Public Constructors
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.
Public Methods
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 (never null).
double getExtent()
Returns the extent.
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.
double getStartAngle()
Returns the start angle.
Stroke getStroke()
Returns the stroke.
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 setExtent(double extent)
Sets the extent 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 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(Stroke stroke)
Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.
Protected Methods
Shape getOuterWindow(Rectangle2D frame)
Returns the outer window.
[Expand]
Inherited Methods
From class org.jfree.chart.plot.dial.AbstractDialLayer
From class java.lang.Object
From interface org.jfree.chart.plot.dial.DialFrame
From interface org.jfree.chart.plot.dial.DialLayer

Public Constructors

public ArcDialFrame ()

Creates a new instance of ArcDialFrame that spans 180 degrees.

public ArcDialFrame (double startAngle, double extent)

Creates a new instance of ArcDialFrame that spans the arc specified.

Parameters
startAngle the startAngle (in degrees).
extent the extent of the arc (in degrees, counter-clockwise).

Public Methods

public Object clone ()

Returns a clone of this instance.

Returns
  • A clone.
Throws
CloneNotSupportedException if any attribute of this instance cannot be cloned.

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.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public Paint getBackgroundPaint ()

Returns the background paint (never null).

Returns
  • The background paint.

public double getExtent ()

Returns the extent.

Returns
  • The extent.

public Paint getForegroundPaint ()

Returns the foreground paint.

Returns
  • The foreground paint (never null).

public double getInnerRadius ()

Returns the inner radius, relative to the framing rectangle.

Returns
  • The inner radius.

public double getOuterRadius ()

Returns the outer radius, relative to the framing rectangle.

Returns
  • The outer radius.

public double getStartAngle ()

Returns the start angle.

Returns
  • The start angle.

public Stroke getStroke ()

Returns the stroke.

Returns
  • The stroke (never null).

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.

Returns
  • The hash code.

public boolean isClippedToWindow ()

Returns false to indicate that this dial layer is not clipped to the dial window.

Returns
  • false.

public void setBackgroundPaint (Paint paint)

Sets the background paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters
paint the paint (null not permitted).

public void setExtent (double extent)

Sets the extent and sends a DialLayerChangeEvent to all registered listeners.

Parameters
extent the extent.
See Also

public void setForegroundPaint (Paint paint)

Sets the foreground paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters
paint the paint (null not permitted).

public void setInnerRadius (double radius)

Sets the inner radius and sends a DialLayerChangeEvent to all registered listeners.

Parameters
radius the inner radius.
See Also

public void setOuterRadius (double radius)

Sets the outer radius and sends a DialLayerChangeEvent to all registered listeners.

Parameters
radius the outer radius.
See Also

public void setStartAngle (double angle)

Sets the start angle and sends a DialLayerChangeEvent to all registered listeners.

Parameters
angle the angle.
See Also

public void setStroke (Stroke stroke)

Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.

Parameters
stroke the stroke (null not permitted).
See Also

Protected Methods

protected Shape getOuterWindow (Rectangle2D frame)

Returns the outer window.

Parameters
frame the frame.
Returns
  • The outer window.