Package com.inet.report.chart.dataset
Class GanttOneGroupDataset
- java.lang.Object
-
- com.inet.report.chart.dataset.AbstractDataset
-
- com.inet.report.chart.dataset.GanttForEachRecordDataset
-
- com.inet.report.chart.dataset.GanttOneGroupDataset
-
- All Implemented Interfaces:
BaseDataset
,GanttDataset
,java.io.Serializable
- Direct Known Subclasses:
GanttTwoGroupsDataset
public class GanttOneGroupDataset extends GanttForEachRecordDataset
This is a dataset used by Gantt charts. This evaluates data sorted by one group for three data fields (start, end and progress).- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.inet.report.chart.dataset.GanttForEachRecordDataset
FIELDS_COUNT
-
Fields inherited from interface com.inet.report.chart.dataset.BaseDataset
TOKEN_DATASET
-
-
Constructor Summary
Constructors Constructor Description GanttOneGroupDataset(Chart2 chart)
Creates a new empty dataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Group
getCategoryGroup()
Returns the category group.protected java.lang.String
getName()
java.util.List
getReferencedObject()
FOR INTERNAL USE ONLYvoid
removeCategoryGroup()
Removes the category group.protected void
resetSummaryFields(Group group, boolean isCategoryGroup)
Resets the group properties of summary fields.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.-
Methods inherited from class com.inet.report.chart.dataset.GanttForEachRecordDataset
getChart, getDataField, getDataField, getDataFields, getEndField, getLabelProvider, getProgressField, getStartField, setEndField, setProgressField, setStartField, updateReferences
-
-
-
-
Constructor Detail
-
GanttOneGroupDataset
public GanttOneGroupDataset(Chart2 chart)
Creates a new empty dataset.- Parameters:
chart
- the chart (null
not permitted)- Since:
- 8.0
-
-
Method Detail
-
getCategoryGroup
public Group getCategoryGroup()
Returns the category group. The category group is the first group of chart.- Overrides:
getCategoryGroup
in classGanttForEachRecordDataset
- Returns:
- the group or
null
if this group was not initialized. - Since:
- 8.0
- See Also:
setCategoryGroup(Field)
,removeCategoryGroup()
-
setCategoryGroup
public void setCategoryGroup(Field field)
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 data in this group get this withgetCategoryGroup()
and use the Group properties.SummaryField
,SpecialField
andGroupField
are unsupported field types.- Parameters:
field
- the group field (null
not permitted)- Throws:
java.lang.IllegalArgumentException
- if field isnull
or from unsupported field type.- Since:
- 8.0
- See Also:
Group
,getCategoryGroup()
,removeCategoryGroup()
-
removeCategoryGroup
public void removeCategoryGroup()
Removes the category group. Note: this dataset is incomplete without a category group and cannot be used by the chart.- Since:
- 8.0
- See Also:
setCategoryGroup(Field)
,getCategoryGroup()
-
resetSummaryFields
protected void resetSummaryFields(Group group, boolean isCategoryGroup)
Resets the group properties of summary fields.- Parameters:
group
- the groupisCategoryGroup
- this is a category or series group- Since:
- 8.0
-
verify
public java.lang.String verify(ChartStyle style)
Verifies the group and sum properties of current dataset.- Specified by:
verify
in interfaceBaseDataset
- Overrides:
verify
in classGanttForEachRecordDataset
- Parameters:
style
- the chart style- Returns:
- the error message or empty string if all properties are correct.
-
getReferencedObject
public java.util.List getReferencedObject()
FOR INTERNAL USE ONLY- Specified by:
getReferencedObject
in interfaceBaseDataset
- Overrides:
getReferencedObject
in classcom.inet.report.chart.dataset.AbstractDataset
- Returns:
- FOR INTERNAL USE ONLY
-
saveGroups
protected void saveGroups(java.io.PrintWriter out, int depth)
- Overrides:
saveGroups
in classcom.inet.report.chart.dataset.AbstractDataset
-
getName
protected java.lang.String getName()
- Overrides:
getName
in classGanttForEachRecordDataset
-
-