|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBaseElementDataset net.sf.jasperreports.engine.base.JRBaseChartDataset net.sf.jasperreports.charts.base.JRBaseValueDataset
public class JRBaseValueDataset
An immutable version of a dataset that generates a single value. A value dataset is suitable for using with charts that show a single value against a potential range, such as meter chart or a thermometer chart.
Field Summary | |
---|---|
protected JRExpression |
valueExpression
The expression that returns the single value contained in this dataset. |
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset |
---|
datasetRun, incrementGroup, incrementTypeValue, incrementWhenExpression, resetGroup, resetTypeValue |
Fields inherited from interface net.sf.jasperreports.engine.JRChartDataset |
---|
CATEGORY_DATASET, GANTT_DATASET, HIGHLOW_DATASET, PIE_DATASET, TIMEPERIOD_DATASET, TIMESERIES_DATASET, VALUE_DATASET, XY_DATASET, XYZ_DATASET |
Constructor Summary | |
---|---|
JRBaseValueDataset(JRChartDataset dataset)
Construct a new dataset that is a copy of an existing one. |
|
JRBaseValueDataset(JRValueDataset dataset,
JRBaseObjectFactory factory)
Constructs a new dataset that is a copy of an existing one, and register all of the new dataset's expressions with the specified factory. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector. |
byte |
getDatasetType()
Gets the dataset type. |
JRExpression |
getValueExpression()
Returns the expression that indicates the value held by this dataset. |
void |
validate(JRVerifier verifier)
Validates the dataset using a verifier. |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset |
---|
getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetTypeValue |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElementDataset |
---|
getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetTypeValue |
Field Detail |
---|
protected JRExpression valueExpression
Constructor Detail |
---|
public JRBaseValueDataset(JRChartDataset dataset)
dataset
- the dataset to copypublic JRBaseValueDataset(JRValueDataset dataset, JRBaseObjectFactory factory)
dataset
- the datast to copyfactory
- the factory to register the new dataset's expressions withMethod Detail |
---|
public JRExpression getValueExpression()
JRValueDataset
getValueExpression
in interface JRValueDataset
public byte getDatasetType()
JRChartDataset
getDatasetType
in interface JRChartDataset
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |