org.jfree.report.function
Class NegativeNumberPaintChangeFunction
java.lang.Object
|
+--org.jfree.report.function.AbstractExpression
|
+--org.jfree.report.function.AbstractFunction
|
+--org.jfree.report.function.AbstractElementFormatFunction
|
+--org.jfree.report.function.NegativeNumberPaintChangeFunction
- public class NegativeNumberPaintChangeFunction
- extends AbstractElementFormatFunction
This function changes the color of the named elements according to the
current value of a numeric field. If the value of the field is not
numeric (or null), the positive color is set.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
| Methods inherited from class org.jfree.report.function.AbstractElementFormatFunction |
getElement,
groupFinished,
groupStarted,
itemsAdvanced,
pageCanceled,
pageFinished,
pageRolledBack,
pageStarted,
reportFinished,
reportStarted,
setElement |
| Methods inherited from class org.jfree.report.function.AbstractExpression |
getDataRow,
getDependencyLevel,
getInstance,
getName,
getReportConfiguration,
getResourceBundleFactory,
getRuntime,
isActive,
setActive,
setDependencyLevel,
setName,
setRuntime |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NegativeNumberPaintChangeFunction
public NegativeNumberPaintChangeFunction()
processRootBand
protected void processRootBand(Band b)
- Overrides:
- processRootBand in class AbstractElementFormatFunction
selectColor
protected java.awt.Color selectColor()
getPositiveColor
public java.awt.Color getPositiveColor()
setPositiveColor
public void setPositiveColor(java.awt.Color positiveColor)
getNegativeColor
public java.awt.Color getNegativeColor()
setNegativeColor
public void setNegativeColor(java.awt.Color negativeColor)
getZeroColor
public java.awt.Color getZeroColor()
setZeroColor
public void setZeroColor(java.awt.Color zeroColor)
getField
public java.lang.String getField()
setField
public void setField(java.lang.String field)
getValue
public java.lang.Object getValue()
- Description copied from interface: Expression
- Return the current expression value.
The value depends (obviously) on the
expression implementation.
- Tags copied from interface: Expression
- Returns:
- the value of the function.