|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.charts.base.JRBaseValueDisplay
public class JRBaseValueDisplay
An immutable representation of the formatting options for showing the value of a value dataset. Used by charts that display a single value, such as a Meter or Thermometer.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JRChart chart
protected java.awt.Color color
protected java.lang.String mask
protected JRFont font
Constructor Detail |
---|
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 withMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |