Class ScaledDialValueIndicator
- java.lang.Object
-
- org.jfree.chart.plot.dial.AbstractDialLayer
-
- org.jfree.chart.plot.dial.DialValueIndicator
-
- net.sf.jasperreports.chartthemes.spring.ScaledDialValueIndicator
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.jfree.chart.plot.dial.DialLayer
,org.jfree.chart.util.PublicCloneable
public class ScaledDialValueIndicator extends org.jfree.chart.plot.dial.DialValueIndicator
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScaledDialValueIndicator()
Creates a new instance ofDialValueIndicator
.ScaledDialValueIndicator(int datasetIndex)
Creates a new instance ofDialValueIndicator
.ScaledDialValueIndicator(int datasetIndex, int scale)
Creates a new instance ofDialValueIndicator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Returns a clone of this instance.void
draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the background to the specified graphics device.boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.int
getScale()
int
hashCode()
Returns a hash code for this instance.void
setScale(int scale)
-
Methods inherited from class org.jfree.chart.plot.dial.DialValueIndicator
getAngle, getBackgroundPaint, getDatasetIndex, getFont, getFrameAnchor, getInsets, getMaxTemplateValue, getNumberFormat, getOutlinePaint, getOutlineStroke, getPaint, getRadius, getTemplateValue, getTextAnchor, getValueAnchor, isClippedToWindow, setAngle, setBackgroundPaint, setDatasetIndex, setFont, setFrameAnchor, setInsets, setMaxTemplateValue, setNumberFormat, setOutlinePaint, setOutlineStroke, setPaint, setRadius, setTemplateValue, setTextAnchor, setValueAnchor
-
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible
-
-
-
-
Constructor Detail
-
ScaledDialValueIndicator
public ScaledDialValueIndicator()
Creates a new instance ofDialValueIndicator
.
-
ScaledDialValueIndicator
public ScaledDialValueIndicator(int datasetIndex)
Creates a new instance ofDialValueIndicator
.- Parameters:
datasetIndex
- the dataset index.
-
ScaledDialValueIndicator
public ScaledDialValueIndicator(int datasetIndex, int scale)
Creates a new instance ofDialValueIndicator
.- Parameters:
datasetIndex
- the dataset index.scale
- the scale.
-
-
Method Detail
-
draw
public void draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the background to the specified graphics device. If the dial frame specifies a window, the clipping region will already have been set to this window before this method is called.- Specified by:
draw
in interfaceorg.jfree.chart.plot.dial.DialLayer
- Overrides:
draw
in classorg.jfree.chart.plot.dial.DialValueIndicator
- Parameters:
g2
- the graphics device (null
not permitted).plot
- the plot (ignored here).frame
- the dial frame (ignored here).view
- the view rectangle (null
not permitted).
-
getScale
public int getScale()
- Returns:
- the scale
-
setScale
public void setScale(int scale)
- Parameters:
scale
- the scale to set
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equals
in classorg.jfree.chart.plot.dial.DialValueIndicator
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCode
in classorg.jfree.chart.plot.dial.DialValueIndicator
- Returns:
- The hash code.
-
clone
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.- Specified by:
clone
in interfaceorg.jfree.chart.util.PublicCloneable
- Overrides:
clone
in classorg.jfree.chart.plot.dial.DialValueIndicator
- Returns:
- The clone.
- Throws:
CloneNotSupportedException
- if some attribute of this instance cannot be cloned.
-
-