Klasse OneGroupDataset

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

public class OneGroupDataset extends ForAllRecordsDataset implements StandardDataset, PieDataset
This is a dataset used by standard (bar, line, area) and pie charts. This evaluates data sorted by one group for several data fields.
Seit:
8.0
Siehe auch:
  • Konstruktordetails

    • OneGroupDataset

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

    • getCategoryGroup

      public Group getCategoryGroup()
      Returns the category group. The category group is the first group of chart.
      Setzt außer Kraft:
      getCategoryGroup in Klasse ForAllRecordsDataset
      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 data set is incomplete without a category groupand cannot be used by the chart.
      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
      Setzt außer Kraft:
      verify in Klasse ForAllRecordsDataset
      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
    • 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()
      FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
      Setzt außer Kraft:
      getName in Klasse ForAllRecordsDataset
      Gibt zurück:
      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
      Angegeben von:
      getLabelProvider in Schnittstelle BaseDataset
      Setzt außer Kraft:
      getLabelProvider in Klasse ForAllRecordsDataset
      Gibt zurück:
      the LabelProvider responsible for providing the title, footnote, and axis labels