Package com.inet.report.chart.dataset
Class XYOneGroupDataset
java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.XYForAllRecordsDataset
com.inet.report.chart.dataset.XYForEachRecordDataset
com.inet.report.chart.dataset.XYOneGroupDataset
- All Implemented Interfaces:
BaseDataset,XYDataset,Serializable
This is a dataset used by xy charts.
This evaluates data sorted by one group for three data fields (x, y and size).
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from class com.inet.report.chart.dataset.XYForAllRecordsDataset
FIELDS_COUNTFields inherited from interface com.inet.report.chart.dataset.BaseDataset
TOKEN_DATASET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the category group.protected StringgetName()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.XYForEachRecordDataset
getLabelField, getLabelProvider, saveProperties, setLabelFieldMethods inherited from class com.inet.report.chart.dataset.XYForAllRecordsDataset
getChart, getDataField, getDataField, getDataFields, getSizeField, getXField, getYField, setSizeField, setXField, setYField, updateReferencesMethods inherited from class com.inet.report.chart.dataset.AbstractDataset
saveSummaryFields
-
Constructor Details
-
XYOneGroupDataset
Creates a new empty dataset.- 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 classXYForAllRecordsDataset- 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, for example the x axis forPlotOrientation.VERTICALplots. To change the sort order of the data in this group, get the withgetCategoryGroup()and use the Group properties.SummaryField,SpecialFieldandGroupFieldare unsupported field types.- Parameters:
field- the group field (nullnot permitted)- Throws:
IllegalArgumentException- if field isnullor from unsupported field type.- Since:
- 8.0
- See Also:
-
removeCategoryGroup
public void removeCategoryGroup()Removes the category group. Note: this dataset is incomplete without a category group and cannot be used by the chart in this case.- Since:
- 8.0
- See Also:
-
verify
Verifies the group and sum properties of current dataset.- Specified by:
verifyin interfaceBaseDataset- Overrides:
verifyin classXYForAllRecordsDataset- 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 classXYForEachRecordDataset- Returns:
- FOR INTERNAL USE ONLY
-
saveGroups
- Overrides:
saveGroupsin classcom.inet.report.chart.dataset.AbstractDataset
-
getName
- Overrides:
getNamein classXYForEachRecordDataset
-