Class GanttTwoGroupsDataset
java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.GanttForEachRecordDataset
com.inet.report.chart.dataset.GanttOneGroupDataset
com.inet.report.chart.dataset.GanttTwoGroupsDataset
- All Implemented Interfaces:
BaseDataset, GanttDataset, Serializable
This is a dataset used by Gantt charts.
This evaluates data sorted by two groups for three data fields (start, end and progress).
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from class GanttForEachRecordDataset
FIELDS_COUNTFields inherited from interface BaseDataset
TOKEN_DATASET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetName()FOR INTERNAL USE ONLYReturns the series group.voidRemoves the series group.protected voidsaveGroups(PrintWriter out, int depth) voidsetSeriesGroup(Field field) Creates a series group on this field.verify(ChartStyle style) Verifies the group and sum properties of current dataset.Methods inherited from class GanttOneGroupDataset
getCategoryGroup, removeCategoryGroup, resetSummaryFields, setCategoryGroupMethods inherited from class GanttForEachRecordDataset
getChart, getDataField, getDataField, getDataFields, getEndField, getLabelProvider, getProgressField, getStartField, setEndField, setProgressField, setStartField, updateReferencesMethods inherited from class com.inet.report.chart.dataset.AbstractDataset
saveProperties, saveSummaryFields
-
Constructor Details
-
GanttTwoGroupsDataset
Creates a new empty dataset.- Parameters:
chart- the chart (nullnot permitted)- Since:
- 8.0
-
-
Method Details
-
getSeriesGroup
Returns the series group. The series group is the second group of chart.- Returns:
- the group or
nullif this group was not initialized. - Since:
- 8.0
- See Also:
-
setSeriesGroup
Creates a series 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. The series group handles data grouped by the category group. To change the sort order of the data in this group, get this withgetSeriesGroup()and use the Group properties.SummaryField,SpecialFieldandGroupFieldare unsupported field types.- Parameters:
field- (nullnot permitted)- Throws:
IllegalArgumentException- if field isnullor has an unsupported field type.- Since:
- 8.0
- See Also:
-
removeSeriesGroup
public void removeSeriesGroup()Removes the series group. Note: this dataset is incomplete without a series group and 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 classGanttOneGroupDataset- 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 classGanttOneGroupDataset- Returns:
- FOR INTERNAL USE ONLY
-
saveGroups
- Overrides:
saveGroupsin classGanttOneGroupDataset
-
getName
- Overrides:
getNamein classGanttOneGroupDataset
-