|
||||||||||
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.PaintComponentFunction
public class PaintComponentFunction
Paints a AWT or Swing Component, fitting the component into the element bounds. The component must be contained in the dataRow.
In an headless environment this function wont work and will always return null.
Constructor Summary | |
---|---|
PaintComponentFunction()
Deprecated. DefaultConstructor. |
Method Summary | |
---|---|
String |
getElement()
Deprecated. Returns the element used by the function. |
String |
getField()
Deprecated. Returns the field used by the function. |
Expression |
getInstance()
Deprecated. Return a completly separated copy of this function. |
float |
getScale()
Deprecated. Gets the scale factor for the created image. |
Object |
getValue()
Deprecated. Return the current expression value. |
void |
setElement(String field)
Deprecated. Sets the element name for the function. |
void |
setField(String field)
Deprecated. Sets the field name for the function. |
void |
setScale(float scale)
Deprecated. Define a scale factor for the created image. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction |
---|
groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, 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.function.Expression |
---|
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime |
Constructor Detail |
---|
public PaintComponentFunction()
Method Detail |
---|
public String getElement()
The element name corresponds to a element in the report. The element name must be unique, as the first occurence of the element is used.
public void setElement(String field)
The element name corresponds to a element in the report. The element name must be unique, as the first occurence of the element is used.
field
- the field name (null not permitted).public String getField()
public void setField(String field)
field
- the field name.public Object getValue()
The value depends (obviously) on the expression implementation.
public void setScale(float scale)
scale
- the scale factor.public float getScale()
public Expression getInstance()
getInstance
in interface Expression
getInstance
in class AbstractExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |