public class SurveyScaleExpression extends ColumnAggregationExpression implements java.io.Serializable
SurveyScale instance that will present those values, and
returns that instance as the expression result. The fields used by the expression are
defined using properties named '0', '1', ... 'N', which need to be specified after the
expression is created. These fields should contain Number instances.The SurveyScale class implements the Drawable interface, so it can be displayed
using a DrawableElement.| Constructor and Description |
|---|
SurveyScaleExpression() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
computeValue()
Returns a
SurveyScale instance that is set up to display the values in the
current row. |
protected int |
getFieldListParameterPosition() |
int |
getHighestValue() |
int |
getLowestValue() |
java.awt.Shape |
getOverrideShape()
Returns the override shape.
|
java.lang.Number |
getRangeLowerBound() |
java.awt.Paint |
getRangePaint() |
java.lang.Number |
getRangeUpperBound() |
boolean |
isOverrideShapeFilled() |
void |
setHighestValue(int highestValue) |
void |
setLowestValue(int lowestValue) |
void |
setOverrideShape(java.awt.Shape shape)
Sets the override shape.
|
void |
setOverrideShapeFilled(boolean b)
Sets a flag that controls whether the override shape is filled or not.
|
void |
setRangeLowerBound(java.lang.Number rangeLowerBound) |
void |
setRangePaint(java.awt.Paint rangePaint) |
void |
setRangeUpperBound(java.lang.Number rangeUpperBound) |
getFieldValues, getFieldValuesclone, getDataRow, getInstance, getName, getParentLocale, getReportConfiguration, getResourceBundleFactory, getRuntime, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntimeprotected int getFieldListParameterPosition()
getFieldListParameterPosition in class ColumnAggregationExpressionpublic java.lang.Number getRangeLowerBound()
public void setRangeLowerBound(java.lang.Number rangeLowerBound)
public java.lang.Number getRangeUpperBound()
public void setRangeUpperBound(java.lang.Number rangeUpperBound)
public int getLowestValue()
public void setLowestValue(int lowestValue)
public int getHighestValue()
public void setHighestValue(int highestValue)
public java.awt.Shape getOverrideShape()
null).public void setOverrideShape(java.awt.Shape shape)
SurveyScale is created with a set of default
shapes, this method allows you to clearFromParent the *first* shape if you need to (leave it
as null otherwise).shape - the shape (null permitted).public void setOverrideShapeFilled(boolean b)
b - the flag.public java.lang.Object computeValue()
throws DataSourceException
SurveyScale instance that is set up to display the values in the
current row.computeValue in interface ExpressionSurveyScale instance.DataSourceExceptionpublic boolean isOverrideShapeFilled()
public java.awt.Paint getRangePaint()
public void setRangePaint(java.awt.Paint rangePaint)