public class JRBaseValueDisplay extends Object implements JRValueDisplay, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected JRChart |
chart |
protected Color |
color
The color to use when writing the value.
|
protected JRFont |
font
The font to use when writing the value.
|
protected 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 |
|---|---|
Object |
clone() |
JRBaseValueDisplay |
clone(JRChart parentChart) |
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.
|
JRChart |
getChart() |
Color |
getColor()
Returns the color to use when writing the value.
|
JRFont |
getFont()
Returns the font to use when writing the value.
|
String |
getMask()
Returns the formatting mask to use when writing the value.
|
protected JRChart chart
protected Color color
protected 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 JRValueDisplaypublic Color getColor()
JRValueDisplaygetColor in interface JRValueDisplaypublic String getMask()
JRValueDisplayjava.text.DecimalFormat.getMask in interface JRValueDisplaypublic JRFont getFont()
JRValueDisplaygetFont in interface JRValueDisplaypublic void collectExpressions(JRExpressionCollector collector)
collector - the expression collector to usepublic Object clone()
clone in interface JRCloneableclone in class Objectpublic JRBaseValueDisplay clone(JRChart parentChart)
clone in interface JRValueDisplayCopyright © 2017. All rights reserved.