i-net Clear Reports

com.inet.report.chart.dataset
Class GanttTwoGroupsDataset

java.lang.Object
  extended by com.inet.report.chart.dataset.AbstractDataset
      extended by com.inet.report.chart.dataset.GanttForEachRecordDataset
          extended by com.inet.report.chart.dataset.GanttOneGroupDataset
              extended by com.inet.report.chart.dataset.GanttTwoGroupsDataset
All Implemented Interfaces:
BaseDataset, GanttDataset, java.io.Serializable

public class GanttTwoGroupsDataset
extends GanttOneGroupDataset

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:
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
GanttTwoGroupsDataset(Chart2 chart)
          Creates a new empty dataset.
 
Method Summary
protected  java.lang.String getName()
          FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
 java.util.List getReferencedObject()
          FOR INTERNAL USE ONLY
 Group getSeriesGroup()
          Returns the series group.
 void removeSeriesGroup()
          Removes the series group.
protected  void saveGroups(java.io.PrintWriter out, int depth)
          Writes the groups properties to output.
 void setSeriesGroup(Field field)
          Creates a series 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.GanttOneGroupDataset
getCategoryGroup, removeCategoryGroup, resetSummaryFields, setCategoryGroup
 
Methods inherited from class com.inet.report.chart.dataset.GanttForEachRecordDataset
getChart, getDataField, getDataField, getDataFields, getEndField, getLabelProvider, getProgressField, getStartField, setEndField, setProgressField, setStartField
 

Constructor Detail

GanttTwoGroupsDataset

public GanttTwoGroupsDataset(Chart2 chart)
Creates a new empty dataset.

Parameters:
chart - the chart (null not permitted)
Since:
8.0
Method Detail

getSeriesGroup

public Group getSeriesGroup()
Returns the series group. The series group is the second group of chart.

Returns:
the group or null if this group was not initialized.
Since:
8.0
See Also:
setSeriesGroup(Field), removeSeriesGroup()

setSeriesGroup

public void setSeriesGroup(Field field)
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 by PlotOrientation.VERTICAL. The series group handles data grouped by the category group. To change the sort order of the data in this group, get this with getSeriesGroup() and use the Group properties. SummaryField, SpecialField and GroupField are unsupported field types.

Parameters:
field - (null not permitted)
Throws:
java.lang.IllegalArgumentException - if field is null or has an unsupported field type.
Since:
8.0
See Also:
Group, getSeriesGroup(), removeSeriesGroup()

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:
setSeriesGroup(Field), getSeriesGroup()

verify

public java.lang.String verify(ChartStyle style)
Verifies the group and sum properties of current dataset.

Specified by:
verify in interface BaseDataset
Overrides:
verify in class GanttOneGroupDataset
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

Overrides:
getReferencedObject in class GanttOneGroupDataset
Returns:
FOR INTERNAL USE ONLY

saveGroups

protected void saveGroups(java.io.PrintWriter out,
                          int depth)
Writes the groups properties to output. Overwrites this to save intern properties direct to PrintWriter without building a StringBuffer.

Overrides:
saveGroups in class GanttOneGroupDataset
Parameters:
out - the output
depth - the depth of XML indent

getName

protected java.lang.String getName()
FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.

Overrides:
getName in class GanttOneGroupDataset
Returns:
the name.

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH