Class GanttOneGroupDataset

    • Constructor Detail

      • GanttOneGroupDataset

        public GanttOneGroupDataset​(Chart2 chart)
        Creates a new empty dataset.
        Parameters:
        chart - the chart (null not permitted)
        Since:
        8.0
    • Method Detail

      • 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 by PlotOrientation.VERTICAL. To change the sort order of data in this group get this with getCategoryGroup() and use the Group properties. SummaryField, SpecialField and GroupField are unsupported field types.
        Parameters:
        field - the group field (null not permitted)
        Throws:
        java.lang.IllegalArgumentException - if field is null 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 group
        isCategoryGroup - 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 interface BaseDataset
        Overrides:
        verify in class GanttForEachRecordDataset
        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 interface BaseDataset
        Overrides:
        getReferencedObject in class com.inet.report.chart.dataset.AbstractDataset
        Returns:
        FOR INTERNAL USE ONLY
      • saveGroups

        protected void saveGroups​(java.io.PrintWriter out,
                                  int depth)
        Overrides:
        saveGroups in class com.inet.report.chart.dataset.AbstractDataset