Class JRDesignValueDisplay
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseValueDisplay
-
- net.sf.jasperreports.charts.design.JRDesignValueDisplay
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRValueDisplay
,JRChangeEventsSupport
,JRCloneable
public class JRDesignValueDisplay extends JRBaseValueDisplay implements JRChangeEventsSupport
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.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_COLOR
static String
PROPERTY_FONT
static String
PROPERTY_MASK
-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseValueDisplay
chart, color, font, mask
-
-
Constructor Summary
Constructors Constructor Description JRDesignValueDisplay(JRValueDisplay valueDisplay, JRChart chart)
Constructs a new value display that is a copy of an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.void
setColor(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(String mask)
Sets the formatting mask to use when displaying the value.-
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseValueDisplay
clone, collectExpressions, getChart, getColor, getFont, getMask
-
-
-
-
Field Detail
-
PROPERTY_COLOR
public static final String PROPERTY_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_FONT
public static final String PROPERTY_FONT
- See Also:
- Constant Field Values
-
PROPERTY_MASK
public static final String PROPERTY_MASK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRDesignValueDisplay
public JRDesignValueDisplay(JRValueDisplay valueDisplay, JRChart chart)
Constructs a new value display that is a copy of an existing one.- Parameters:
valueDisplay
- the display to copy
-
-
Method Detail
-
setColor
public void setColor(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(String mask)
Sets the formatting mask to use when displaying the value. This mask will be used to create ajava.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
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseValueDisplay
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
-