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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofDialValueIndicator.ScaledDialValueIndicator(int datasetIndex) Creates a new instance ofDialValueIndicator.ScaledDialValueIndicator(int datasetIndex, int scale) Creates a new instance ofDialValueIndicator. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this instance.voiddraw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view) Draws the background to the specified graphics device.booleanTests this instance for equality with an arbitrary object.intgetScale()inthashCode()Returns a hash code for this instance.voidsetScale(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, setValueAnchorMethods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisibleMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.chart.plot.dial.DialLayer
addChangeListener, hasListener, isVisible, removeChangeListener
-
Constructor Details
-
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 Details
-
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:
drawin interfaceorg.jfree.chart.plot.dial.DialLayer- Overrides:
drawin classorg.jfree.chart.plot.dial.DialValueIndicator- Parameters:
g2- the graphics device (nullnot permitted).plot- the plot (ignored here).frame- the dial frame (ignored here).view- the view rectangle (nullnot permitted).
-
getScale
public int getScale()- Returns:
- the scale
-
setScale
public void setScale(int scale) - Parameters:
scale- the scale to set
-
equals
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classorg.jfree.chart.plot.dial.DialValueIndicator- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code for this instance.- Overrides:
hashCodein classorg.jfree.chart.plot.dial.DialValueIndicator- Returns:
- The hash code.
-
clone
Returns a clone of this instance.- Specified by:
clonein interfaceorg.jfree.chart.util.PublicCloneable- Overrides:
clonein classorg.jfree.chart.plot.dial.DialValueIndicator- Returns:
- The clone.
- Throws:
CloneNotSupportedException- if some attribute of this instance cannot be cloned.
-