|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction
org.pentaho.reporting.engine.classic.core.function.ElementColorFunction
public class ElementColorFunction
A function that alternates between true and false for each item within a group. The functions value affects a defined elements color. If the function evaluates to true, the named element is painted with the colorTrue, else the element is painted with colorFalse.
Use the propertyelement
to name an element contained in the ItemBand whose color should be affected by
this function. All colors have the color 'black' by default.
Constructor Summary | |
---|---|
ElementColorFunction()
Deprecated. Default constructor. |
Method Summary | |
---|---|
Color |
getColorFalse()
Deprecated. Returns the color for false values. |
Color |
getColorTrue()
Deprecated. Returns the color for true values. |
String |
getField()
Deprecated. Returns the field used by the function. |
void |
setColorFalse(Color colorFalse)
Deprecated. Sets the color for false values. |
void |
setColorTrue(Color colorTrue)
Deprecated. Sets the color for true values. |
void |
setField(String field)
Deprecated. Sets the field name for the function. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction |
---|
getElement, getValue, groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, pageFinished, pageStarted, reportFinished, reportInitialized, reportStarted, setElement |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction |
---|
reportDone |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.event.ReportListener |
---|
reportDone |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression |
---|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime |
Constructor Detail |
---|
public ElementColorFunction()
Method Detail |
---|
public String getField()
public void setField(String field)
field
- the field name.public void setColorTrue(Color colorTrue)
colorTrue
- the color.public void setColorFalse(Color colorFalse)
colorFalse
- the color.public Color getColorTrue()
public Color getColorFalse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |