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
java.text.DecimalFormat
object.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 Color getColor()
JRValueDisplay
getColor
in interface JRValueDisplay
public 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 Object clone()
clone
in interface JRCloneable
clone
in class Object
public JRBaseValueDisplay clone(JRChart parentChart)
clone
in interface JRValueDisplay
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.