Klasse TwoGroupsDataset

java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.TwoGroupsDataset
Alle implementierten Schnittstellen:
BaseDataset, StandardDataset, Serializable

public class TwoGroupsDataset extends com.inet.report.chart.dataset.AbstractDataset implements StandardDataset
This is a dataset used by standard (bar, line, area) charts. This evaluates data sorted by two groups for one data field.
Seit:
8.0
Siehe auch:
  • Konstruktordetails

    • TwoGroupsDataset

      public TwoGroupsDataset(Chart2 chart)
      Creates a new empty dataset.
      Parameter:
      chart - the chart (null not permitted)
      Seit:
      8.0
  • Methodendetails

    • getChart

      public Chart2 getChart()
      Returns the parent chart of this dataset.
      Angegeben von:
      getChart in Schnittstelle BaseDataset
      Gibt zurück:
      the chart.
    • getCategoryGroup

      public Group getCategoryGroup()
      Returns the category group. The category group is the first group of chart.
      Gibt zurück:
      the group or null if this group was not initialized.
      Seit:
      8.0
      Siehe auch:
    • 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 the data in this group get this with getCategoryGroup() and use the Group properties. SummaryField, SpecialField and GroupField are unsupported field types.
      Parameter:
      field - the group field (null not permitted)
      Löst aus:
      IllegalArgumentException - if field is null or has an unsupported field type.
      Seit:
      8.0
      Siehe auch:
    • removeCategoryGroup

      public void removeCategoryGroup()
      Removes the category group. Note: this dataset is incomplete without a category group and cannot be used by the chart in this case.
      Seit:
      8.0
      Siehe auch:
    • getSeriesGroup

      public Group getSeriesGroup()
      Returns the series group. The series group is the second group of chart.
      Gibt zurück:
      the group or null if this group was not initialized.
      Seit:
      8.0
      Siehe auch:
    • 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 gets a own group axis by a chart with three axis (i.e. 3D chart) or it handles data grouped by 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.
      Parameter:
      field - (null not permitted)
      Löst aus:
      IllegalArgumentException - if field is null or has an unsupported field type.
      Seit:
      8.0
      Siehe auch:
    • removeSeriesGroup

      public void removeSeriesGroup()
      Removes the series group. Note: this dataset is incomplete without a series group and cannot be used by the chart in this case.
      Seit:
      8.0
      Siehe auch:
    • getDataField

      public SummaryField getDataField()
      Returns the data field. This field is a data or summary field of chart.
      Gibt zurück:
      the field of type SummaryField.
      Seit:
      8.0
      Siehe auch:
    • getDataField

      public SummaryField getDataField(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.
      Angegeben von:
      getDataField in Schnittstelle BaseDataset
      Parameter:
      name - the searched name of summary field (null not permitted)
      Gibt zurück:
      the summary field with the specified name or null.
      Siehe auch:
    • getDataFields

      public List getDataFields()
      Returns the data fields of this dataset as list.
      Angegeben von:
      getDataFields in Schnittstelle BaseDataset
      Gibt zurück:
      the list of data fields
      Siehe auch:
    • setDataField

      public void setDataField(int summaryOperation, Field field, Field field2nd, int nth)
      Sets the data field which values will be calculated by the summary operation and shown in the chart as i.e. bar length. Creates a new SummaryField with this field, operation and parameters.
      For more information to supported value type of field and using of parameters 'field2nd' and 'nth' see SummaryField.
      Parameter:
      summaryOperation - the summary operation
      field - the data field
      field2nd - the second data field, used for example for weights in weighted average SummaryField.WEIGHTED_AVERAGE.
      nth - the nth parameter, used for example by summary operation SummaryField.NTH_LARGEST
      Löst aus:
      IllegalArgumentException - if the first or second field are required and null or have an unsupported value type.
      IllegalArgumentException - if nth is less than zero.
      Seit:
      8.0
      Siehe auch:
    • removeDataField

      public void removeDataField()
      Removes the data field. Note: this dataset is incomplete without a data field and cannot be used by the chart in this case.
      Seit:
      8.0
      Siehe auch:
    • verify

      public String verify(ChartStyle style)
      Verifies the group and sum properties of current dataset.
      Angegeben von:
      verify in Schnittstelle BaseDataset
      Parameter:
      style - the chart style
      Gibt zurück:
      the error message or empty string if all properties are correct.
    • getReferencedObject

      public List getReferencedObject()
      FOR INTERNAL USE ONLY
      Angegeben von:
      getReferencedObject in Schnittstelle BaseDataset
      Setzt außer Kraft:
      getReferencedObject in Klasse com.inet.report.chart.dataset.AbstractDataset
      Gibt zurück:
      FOR INTERNAL USE ONLY
    • updateReferences

      public void updateReferences()
      FOR INTERNAL USE ONLY. Updates the references of this dataset.
      Angegeben von:
      updateReferences in Schnittstelle BaseDataset
    • saveGroups

      protected void saveGroups(PrintWriter out, int depth)
      Setzt außer Kraft:
      saveGroups in Klasse com.inet.report.chart.dataset.AbstractDataset
    • getName

      protected String getName()
    • getLabelProvider

      public com.inet.report.chart.dataset.LabelProvider getLabelProvider()
      Returns the LabelProvider responsible for providing the title, footnote, and axis labels
      Angegeben von:
      getLabelProvider in Schnittstelle BaseDataset
      Gibt zurück:
      the LabelProvider responsible for providing the title, footnote, and axis labels