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
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:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.charts.base.JRBaseValueDisplay
chart, color, font, mask -
Constructor Summary
ConstructorsConstructorDescriptionJRDesignValueDisplay(JRValueDisplay valueDisplay, JRChart chart) Constructs a new value display that is a copy of an existing one. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the property change support object for this instance.voidSets the color to use when displaying the value.voidSets the font to use when displaying the value.voidSets 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 Details
-
PROPERTY_COLOR
- See Also:
-
PROPERTY_FONT
- See Also:
-
PROPERTY_MASK
- See Also:
-
-
Constructor Details
-
JRDesignValueDisplay
Constructs a new value display that is a copy of an existing one.- Parameters:
valueDisplay- the display to copy
-
-
Method Details
-
setColor
Sets the color to use when displaying the value.- Parameters:
color- the color to use when displaying the value
-
setMask
Sets the formatting mask to use when displaying the value. This mask will be used to create ajava.text.DecimalFormatobject.- Parameters:
mask- the formatting mask to use when displaying the value
-
setFont
Sets the font to use when displaying the value.- Parameters:
font- the font to use when displaying the value
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseValueDisplay
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-