Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org.jfree.report.modules.misc » survey » [javadoc | source]
org.jfree.report.modules.misc.survey
public class: SurveyScaleExpression [javadoc | source]
java.lang.Object
   org.jfree.report.function.AbstractExpression
      org.jfree.report.modules.misc.survey.SurveyScaleExpression

All Implemented Interfaces:
    Expression, Serializable

An expression that takes values from one or more fields in the current row of the report, builds a 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:
 public SurveyScaleExpression() 
 public SurveyScaleExpression(int lowest,
    int highest) 
 public SurveyScaleExpression(int lowest,
    int highest,
    String lowerBoundsField,
    String upperBoundsField,
    Shape shape) 
    Creates a new expression.
    Parameters:
    lowest - the lowest value on the response scale.
    highest - the highest value on the response scale.
    lowerBoundsField - the name of the field containing the lower bound of the highlighted range (null permitted).
    upperBoundsField - the name of the field containing the upper bound of the highlighted range (null permitted).
    shape - a shape that will be used to override the shape displayed for the first series (null permitted).
Method from org.jfree.report.modules.misc.survey.SurveyScaleExpression Summary:
clone,   getField,   getField,   getHighest,   getLowest,   getOverrideShape,   getRangeLowerBoundField,   getRangePaint,   getRangeUpperBoundField,   getValue,   isOverrideShapeFilled,   setField,   setField,   setHighest,   setLowest,   setOverrideShape,   setOverrideShapeFilled,   setRangeLowerBoundField,   setRangePaint,   setRangeUpperBoundField
Methods from org.jfree.report.function.AbstractExpression:
clone,   getDataRow,   getDependencyLevel,   getInstance,   getName,   getReportConfiguration,   getResourceBundleFactory,   getRuntime,   isActive,   isDeepTraversing,   isPreserve,   setActive,   setDependencyLevel,   setName,   setPreserve,   setRuntime
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.modules.misc.survey.SurveyScaleExpression Detail:
 public Object clone() throws CloneNotSupportedException 
    Clones the expression.
 public String[] getField() 
 public String getField(int idx) 
 public int getHighest() 
 public int getLowest() 
 public Shape getOverrideShape() 
    Returns the override shape.
 public String getRangeLowerBoundField() 
    Returns the name of the field containing the lower bound of the range that is to be highlighted on the scale.
 public Paint getRangePaint() 
 public String getRangeUpperBoundField() 
    Returns the name of the field containing the upper bound of the range that is to be highlighted on the scale.
 public Object getValue() 
    Returns a SurveyScale instance that is set up to display the values in the current row.
 public boolean isOverrideShapeFilled() 
 public  void setField(String[] fields) 
 public  void setField(int index,
    String field) 
 public  void setHighest(int highest) 
 public  void setLowest(int lowest) 
 public  void setOverrideShape(Shape shape) 
    Sets the override shape. The SurveyScale is created with a set of default shapes, this method allows you to replace the *first* shape if you need to (leave it as null otherwise).
 public  void setOverrideShapeFilled(boolean b) 
    Sets a flag that controls whether the override shape is filled or not.
 public  void setRangeLowerBoundField(String field) 
    Sets the name of the field containing the lower bound of the range that is to be highlighted on the scale. Set this to null if you have no range to highlight.
 public  void setRangePaint(Paint rangePaint) 
 public  void setRangeUpperBoundField(String field) 
    Sets the name of the field containing the upper bound of the range that is to be highlighted on the scale. Set this to null if you have no range to highlight.