Class ForAllRecordsDataset

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addDataField​(int summaryOperation, Field field, Field field2nd, int nth)
      Adds a data field to the list of fields whose values will be calculated by the summary operation and shown in the chart as bar length for example.
      protected Group getCategoryGroup()
      Returns the category group.
      Chart2 getChart()
      Returns the parent chart of this dataset.
      SummaryField getDataField​(int index)
      Returns the summary field at the specified position in the list.
      SummaryField getDataField​(java.lang.String name)
      Returns the summary field with the specified name or null if the summary field with this name not found in the list.
      java.util.List getDataFields()
      Returns the data fields of this dataset as list.
      int getDataFieldsCount()
      Returns the count of data fields in this dataset.
      com.inet.report.chart.dataset.LabelProvider getLabelProvider()
      Returns the LabelProvider responsible for providing the title, footnote, and axis labels
      protected java.lang.String getName()
      FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
      void removeAllDataFields()
      Removes all data fields from this dataset.
      void removeDataField​(int index)
      Removes a data field at the specified position in the list.
      void updateReferences()
      FOR INTERNAL USE ONLY.
      java.lang.String verify​(ChartStyle style)
      Verifies the group and sum properties of current dataset.
      • Methods inherited from class com.inet.report.chart.dataset.AbstractDataset

        getReferencedObject, saveGroups, saveProperties, saveSummaryFields
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ForAllRecordsDataset

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

      • getChart

        public Chart2 getChart()
        Returns the parent chart of this dataset.
        Specified by:
        getChart in interface BaseDataset
        Returns:
        the chart.
      • getDataField

        public SummaryField getDataField​(int index)
        Returns the summary field at the specified position in the list.
        Parameters:
        index - index of summary field to return
        Returns:
        the summary field at the specified position in the list.
        Throws:
        java.lang.IndexOutOfBoundsException - if index is out of range.
        Since:
        8.0
      • getDataField

        public SummaryField getDataField​(java.lang.String name)
        Returns the summary field with the specified name or null if the summary field with this name not found in the list. Testing for equality using the case sensitive equals method.
        Specified by:
        getDataField in interface BaseDataset
        Parameters:
        name - the searched name of summary field (null not permitted)
        Returns:
        the summary field with the specified name or null.
        See Also:
        BaseDataset.getDataFields()
      • getCategoryGroup

        protected Group getCategoryGroup()
        Returns the category group. The category group is the first group of chart.
        Returns:
        the 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
        Parameters:
        style - the chart style
        Returns:
        the error message or empty string if all properties are correct.
      • updateReferences

        public void updateReferences()
        FOR INTERNAL USE ONLY. Updates the references of this dataset.
        Specified by:
        updateReferences in interface BaseDataset
      • getName

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

        public com.inet.report.chart.dataset.LabelProvider getLabelProvider()
        Returns the LabelProvider responsible for providing the title, footnote, and axis labels
        Specified by:
        getLabelProvider in interface BaseDataset
        Returns:
        the LabelProvider responsible for providing the title, footnote, and axis labels