|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 chart
public JRBaseValueDisplay(JRValueDisplay valueDisplay,
JRBaseObjectFactory factory)
valueDisplay - the value formatting object to copyfactory - the factory object to register expressions with| Method Detail |
|---|
public JRChart getChart()
getChart in interface JRValueDisplaypublic java.awt.Color getColor()
JRValueDisplay
getColor in interface JRValueDisplaypublic java.lang.String getMask()
JRValueDisplayjava.text.DecimalFormat.
getMask in interface JRValueDisplaypublic JRFont getFont()
JRValueDisplay
getFont in interface JRValueDisplaypublic void collectExpressions(JRExpressionCollector collector)
collector - the expression collector to usepublic java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||