public class ForAllRecordsDataset extends com.inet.report.chart.dataset.AbstractDataset implements StandardDataset, PieDataset
TOKEN_DATASET
Constructor and Description |
---|
ForAllRecordsDataset(Chart2 chart)
Creates a new empty dataset.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDataField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Adds a data field to the list of fields whose values will be calculated by the summary operation
and shown in the chart as bar length for example.
|
protected Group |
getCategoryGroup()
Returns the category group.
|
Chart2 |
getChart()
Returns the parent chart of this dataset.
|
SummaryField |
getDataField(int index)
Returns the summary field at the specified position in the list.
|
SummaryField |
getDataField(java.lang.String name)
Returns the summary field with the specified name or
null
if the summary field with this name not found in the list. |
java.util.List |
getDataFields()
Returns the data fields of this dataset as list.
|
int |
getDataFieldsCount()
Returns the count of data fields in this dataset.
|
com.inet.report.chart.dataset.LabelProvider |
getLabelProvider()
Returns the LabelProvider responsible for providing the title, footnote, and axis labels
|
void |
removeAllDataFields()
Removes all data fields from this dataset.
|
void |
removeDataField(int index)
Removes a data field at the specified position in the list.
|
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset.
|
public ForAllRecordsDataset(Chart2 chart)
chart
- the chart (null
not permitted)public Chart2 getChart()
getChart
in interface BaseDataset
public boolean addDataField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with the given parameters.SummaryField
.summaryOperation
- the summary operationfield
- the data fieldfield2nd
- the second data field, user for example for weights in weighted average SummaryField.WEIGHTED_AVERAGE
.nth
- the nth parameter, used for example by the summary operation SummaryField.NTH_LARGEST
java.lang.IllegalArgumentException
- if the required second field or the field are null
or have an unsupported value type.java.lang.IllegalArgumentException
- if parameter nth is less than zero.getDataField(int)
,
getDataFieldsCount()
,
removeAllDataFields()
,
removeDataField(int)
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getDataField(int index)
index
- index of summary field to returnjava.lang.IndexOutOfBoundsException
- if index is out of range.public SummaryField getDataField(java.lang.String name)
null
if the summary field with this name not found in the list.
Testing for equality using the case sensitive equals method.getDataField
in interface BaseDataset
name
- the searched name of summary field (null
not permitted)null
.BaseDataset.getDataFields()
public java.util.List getDataFields()
getDataFields
in interface BaseDataset
BaseDataset.getDataField(String)
public void removeDataField(int index)
index
- the specified positionjava.lang.IndexOutOfBoundsException
- if index out of range.addDataField(int, Field, Field, int)
,
getDataField(int)
,
getDataFieldsCount()
,
removeAllDataFields()
public void removeAllDataFields()
addDataField(int, Field, Field, int)
,
getDataField(int)
,
getDataFieldsCount()
,
removeDataField(int)
public int getDataFieldsCount()
addDataField(int, Field, Field, int)
,
getDataField(int)
,
removeAllDataFields()
,
removeDataField(int)
protected Group getCategoryGroup()
public java.lang.String verify(ChartStyle style)
verify
in interface BaseDataset
style
- the chart stylepublic com.inet.report.chart.dataset.LabelProvider getLabelProvider()
getLabelProvider
in interface BaseDataset
Copyright © 1999-2019 by i-net software GmbH