net.sf.jasperreports.charts.base
public class JRBaseValueDisplay extends java.lang.Object implements JRValueDisplay, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected JRChart |
chart |
protected java.awt.Color |
color
The color to use when writing the value.
|
protected JRFont |
font
The font to use when writing the value.
|
protected java.lang.String |
mask
The formatting mask to use when writing the value.
|
Constructor and Description |
---|
JRBaseValueDisplay(JRValueDisplay valueDisplay,
JRBaseObjectFactory factory)
Constructs a copy of an existing value format specification and registers
any expression in the new copy with the specified factory.
|
JRBaseValueDisplay(JRValueDisplay valueDisplay,
JRChart chart)
Constructs a copy of an existing value format specification.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.
|
JRChart |
getChart() |
java.awt.Color |
getColor()
Returns the color to use when writing the value.
|
JRFont |
getFont()
Returns the font to use when writing the value.
|
java.lang.String |
getMask()
Returns the formatting mask to use when writing the value.
|
protected JRChart chart
protected java.awt.Color color
protected java.lang.String mask
protected JRFont font
public JRBaseValueDisplay(JRValueDisplay valueDisplay, JRChart chart)
valueDisplay
- the value formatting object to copychart
- the parent chartpublic JRBaseValueDisplay(JRValueDisplay valueDisplay, JRBaseObjectFactory factory)
valueDisplay
- the value formatting object to copyfactory
- the factory object to register expressions withpublic JRChart getChart()
getChart
in interface JRValueDisplay
public java.awt.Color getColor()
JRValueDisplay
getColor
in interface JRValueDisplay
public java.lang.String getMask()
JRValueDisplay
java.text.DecimalFormat
.getMask
in interface JRValueDisplay
public JRFont getFont()
JRValueDisplay
getFont
in interface JRValueDisplay
public void collectExpressions(JRExpressionCollector collector)
collector
- the expression collector to usepublic java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com