net.sf.jasperreports.charts.design
Class JRDesignValueDisplay
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseValueDisplay
net.sf.jasperreports.charts.design.JRDesignValueDisplay
- All Implemented Interfaces:
- java.io.Serializable, JRValueDisplay
public class JRDesignValueDisplay
- extends JRBaseValueDisplay
An object that specifies how a single value should be displayed. Used with
charts such as a meter or thermometer that display a single value.
- Version:
- $Id: JRDesignValueDisplay.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
Method Summary |
void |
setColor(java.awt.Color color)
Sets the color to use when displaying the value. |
void |
setFont(JRFont font)
Sets the font to use when displaying the value. |
void |
setMask(java.lang.String mask)
Sets the formatting mask to use when displaying the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRDesignValueDisplay
public JRDesignValueDisplay(JRValueDisplay valueDisplay)
- Constructs a new value display that is a copy of an existing one.
- Parameters:
valueDisplay
- the display to copy
setColor
public void setColor(java.awt.Color color)
- Sets the color to use when displaying the value.
- Parameters:
color
- the color to use when displaying the value
setMask
public void setMask(java.lang.String mask)
- Sets the formatting mask to use when displaying the value. This mask will
be used to create a
java.text.DecimalFormat
object.
- Parameters:
mask
- the formatting mask to use when displaying the value
setFont
public void setFont(JRFont font)
- Sets the font to use when displaying the value.
- Parameters:
font
- the font to use when displaying the value
© 2001-2006 JasperSoft Corporation www.jaspersoft.com