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.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 Objectclone()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.booleanequals(Object obj)Tests 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, 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:
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
public boolean equals(Object obj)
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
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Overrides:
clonein classorg.jfree.chart.plot.dial.DialValueIndicator- Returns:
- The clone.
- Throws:
CloneNotSupportedException- if some attribute of this instance cannot be cloned.
-
-