Package com.inet.report.chart.dataset
Class OneGroupDataset
java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.ForAllRecordsDataset
com.inet.report.chart.dataset.OneGroupDataset
- All Implemented Interfaces:
BaseDataset,PieDataset,StandardDataset,Serializable
This is a dataset used by standard (bar, line, area) and pie charts.
This evaluates data sorted by one group for several data fields.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from interface com.inet.report.chart.dataset.BaseDataset
TOKEN_DATASET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the category group.com.inet.report.chart.dataset.LabelProviderReturns the LabelProvider responsible for providing the title, footnote, and axis labelsprotected StringgetName()FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.FOR INTERNAL USE ONLYvoidRemoves the category group.protected voidsaveGroups(PrintWriter out, int depth) voidsetCategoryGroup(Field field) Creates a category group on this field.verify(ChartStyle style) Verifies the group and sum properties of current dataset.Methods inherited from class com.inet.report.chart.dataset.ForAllRecordsDataset
addDataField, getChart, getDataField, getDataField, getDataFields, getDataFieldsCount, removeAllDataFields, removeDataField, updateReferencesMethods inherited from class com.inet.report.chart.dataset.AbstractDataset
saveProperties, saveSummaryFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inet.report.chart.dataset.BaseDataset
getChart, getDataField, getDataFields, updateReferences
-
Constructor Details
-
OneGroupDataset
Creates a new empty data set.- Parameters:
chart- the chart (nullnot permitted)- Since:
- 8.0
-
-
Method Details
-
getCategoryGroup
Returns the category group. The category group is the first group of chart.- Overrides:
getCategoryGroupin classForAllRecordsDataset- Returns:
- the group or
nullif this group was not initialized. - Since:
- 8.0
- See Also:
-
setCategoryGroup
Creates a category group on this field. This group is for sorting and consolidating records with same values on the group axis, i.e. the x axis byPlotOrientation.VERTICAL. To change the sort order of the data in this group, get this withgetCategoryGroup()and use the Group properties.SummaryField,SpecialFieldandGroupFieldare unsupported field types.- Parameters:
field- the group field (nullnot permitted)- Throws:
IllegalArgumentException- if field isnullor has an unsupported field type.- Since:
- 8.0
- See Also:
-
removeCategoryGroup
public void removeCategoryGroup()Removes the category group. Note: this data set is incomplete without a category groupand cannot be used by the chart.- Since:
- 8.0
- See Also:
-
verify
Verifies the group and sum properties of current dataset.- Specified by:
verifyin interfaceBaseDataset- Overrides:
verifyin classForAllRecordsDataset- Parameters:
style- the chart style- Returns:
- the error message or empty string if all properties are correct.
-
getReferencedObject
FOR INTERNAL USE ONLY- Specified by:
getReferencedObjectin interfaceBaseDataset- Overrides:
getReferencedObjectin classcom.inet.report.chart.dataset.AbstractDataset- Returns:
- FOR INTERNAL USE ONLY
-
saveGroups
- Overrides:
saveGroupsin classcom.inet.report.chart.dataset.AbstractDataset
-
getName
FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.- Overrides:
getNamein classForAllRecordsDataset- Returns:
- name of the XML attribute for this dataset
-
getLabelProvider
public com.inet.report.chart.dataset.LabelProvider getLabelProvider()Returns the LabelProvider responsible for providing the title, footnote, and axis labels- Specified by:
getLabelProviderin interfaceBaseDataset- Overrides:
getLabelProviderin classForAllRecordsDataset- Returns:
- the LabelProvider responsible for providing the title, footnote, and axis labels
-