public class JRDesignValueDataset extends JRDesignChartDataset implements JRValueDataset
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_VALUE_EXPRESSION |
protected JRExpression |
valueExpression
The expression that returns the single value contained in this dataset.
|
PROPERTY_DATASET_RUN, PROPERTY_INCREMENT_GROUP, PROPERTY_INCREMENT_TYPE, PROPERTY_INCREMENT_WHEN_EXPRESSION, PROPERTY_RESET_GROUP, PROPERTY_RESET_TYPE
datasetRun, incrementGroup, incrementTypeValue, incrementWhenExpression, resetGroup, resetTypeValue
CATEGORY_DATASET, GANTT_DATASET, HIGHLOW_DATASET, PIE_DATASET, TIMEPERIOD_DATASET, TIMESERIES_DATASET, VALUE_DATASET, XY_DATASET, XYZ_DATASET
Constructor and Description |
---|
JRDesignValueDataset(JRChartDataset dataset)
Construct a new dataset that is a copy of an existing one.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.
|
byte |
getDatasetType()
Returns the type of this dataset.
|
JRExpression |
getValueExpression()
Returns the expression that indicates the value held
by this dataset.
|
void |
setValueExpression(JRExpression valueExpression)
Sets the expression that indicates the value held by this dataset.
|
void |
validate(JRVerifier verifier)
Validates the dataset using a verifier.
|
getEventSupport, setDatasetRun, setIncrementGroup, setIncrementType, setIncrementType, setIncrementWhenExpression, setResetGroup, setResetType, setResetType
getDatasetRun, getIncrementGroup, getIncrementType, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetType, getResetTypeValue
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatasetRun, getIncrementGroup, getIncrementType, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetType, getResetTypeValue
public static final java.lang.String PROPERTY_VALUE_EXPRESSION
protected JRExpression valueExpression
public JRDesignValueDataset(JRChartDataset dataset)
dataset
- the dataset to copypublic JRExpression getValueExpression()
JRValueDataset
getValueExpression
in interface JRValueDataset
public void setValueExpression(JRExpression valueExpression)
valueExpression
- the expression that returns the value held by
this datasetpublic byte getDatasetType()
getDatasetType
in interface JRChartDataset
getDatasetType
in class JRDesignChartDataset
JRChartDataset.VALUE_DATASET
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElementDataset
collector
- the expression collector to usepublic void validate(JRVerifier verifier)
JRChartDataset
Broken rules are collected by the verifier.
validate
in interface JRChartDataset
verifier
- the verifier to use for validationpublic java.lang.Object clone()
clone
in interface JRCloneable
clone
in class JRBaseElementDataset
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com