public class OneGroupDataset extends ForAllRecordsDataset implements StandardDataset, PieDataset
TOKEN_DATASET
Constructor and Description |
---|
OneGroupDataset(Chart2 chart)
Creates a new empty data set.
|
Modifier and Type | Method and Description |
---|---|
Group |
getCategoryGroup()
Returns the category group.
|
com.inet.report.chart.dataset.LabelProvider |
getLabelProvider()
Returns the LabelProvider responsible for providing the title, footnote, and axis labels
|
java.util.List |
getReferencedObject() |
void |
removeCategoryGroup()
Removes the category group.
|
protected void |
saveGroups(java.io.PrintWriter out,
int depth) |
void |
setCategoryGroup(Field field)
Creates a category group on this field.
|
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset.
|
addDataField, getChart, getDataField, getDataField, getDataFields, getDataFieldsCount, removeAllDataFields, removeDataField
getChart, getDataField, getDataFields
public OneGroupDataset(Chart2 chart)
chart
- the chart (null
not permitted)public Group getCategoryGroup()
getCategoryGroup
in class ForAllRecordsDataset
null
if this group was not initialized.setCategoryGroup(Field)
,
removeCategoryGroup()
public void setCategoryGroup(Field field)
PlotOrientation.VERTICAL
.
To change the sort order of the data in this group, get this with getCategoryGroup()
and use the Group properties.
SummaryField
, SpecialField
and GroupField
are unsupported field types.field
- the group field (null
not permitted)java.lang.IllegalArgumentException
- if field is null
or has an unsupported field type.Group
,
getCategoryGroup()
,
removeCategoryGroup()
public void removeCategoryGroup()
setCategoryGroup(Field)
,
getCategoryGroup()
public java.lang.String verify(ChartStyle style)
verify
in interface BaseDataset
verify
in class ForAllRecordsDataset
style
- the chart stylepublic java.util.List getReferencedObject()
getReferencedObject
in class com.inet.report.chart.dataset.AbstractDataset
protected void saveGroups(java.io.PrintWriter out, int depth)
saveGroups
in class com.inet.report.chart.dataset.AbstractDataset
public com.inet.report.chart.dataset.LabelProvider getLabelProvider()
getLabelProvider
in interface BaseDataset
getLabelProvider
in class ForAllRecordsDataset
Copyright © 1999-2020 by i-net software GmbH