Klasse ForAllRecordsDataset
java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.ForAllRecordsDataset
- Alle implementierten Schnittstellen:
BaseDataset, PieDataset, StandardDataset, Serializable
- Bekannte direkte Unterklassen:
ForEachRecordDataset, OneGroupDataset
public class ForAllRecordsDataset
extends com.inet.report.chart.dataset.AbstractDataset
implements StandardDataset, PieDataset
This is a dataset used by standard (bar, line, area) and pie charts.
This evaluates 'for all records' data for several data fields.
- Seit:
- 8.0
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder BaseDataset
TOKEN_DATASET -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibung@Nonnull SummaryFieldaddDataField(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 GroupReturns the category group.getChart()Returns the parent chart of this dataset.getDataField(int index) Returns the summary field at the specified position in the list.getDataField(String name) Returns the summary field with the specified name ornullif the summary field with this name not found in the list.Returns the data fields of this dataset as list.intReturns the count of data fields in this dataset.com.inet.report.chart.dataset.LabelProviderReturns the LabelProvider responsible for providing the title, footnote, and axis labelsprotected StringgetName()FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.voidRemoves all data fields from this dataset.voidremoveDataField(int index) Removes a data field at the specified position in the list.voidFOR INTERNAL USE ONLY.verify(ChartStyle style) Verifies the group and sum properties of current dataset.Von Klasse geerbte Methoden com.inet.report.chart.dataset.AbstractDataset
getReferencedObject, saveGroups, saveProperties, saveSummaryFieldsVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden BaseDataset
getReferencedObject
-
Konstruktordetails
-
ForAllRecordsDataset
Creates a new empty dataset.- Parameter:
chart- the chart (nullnot permitted)- Seit:
- 8.0
-
-
Methodendetails
-
getChart
Returns the parent chart of this dataset.- Angegeben von:
getChartin SchnittstelleBaseDataset- Gibt zurück:
- the chart.
-
addDataField
public @Nonnull SummaryField 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. This will creates a newSummaryFieldwith the given parameters.
For more information about the supported value types of the field and about using parameters 'field2nd' and 'nth' seeSummaryField.- Parameter:
summaryOperation- the summary operationfield- the data fieldfield2nd- the second data field, user for example for weights in weighted averageSummaryField.WEIGHTED_AVERAGE.nth- the nth parameter, used for example by the summary operationSummaryField.NTH_LARGEST- Gibt zurück:
- the created summary field.
- Löst aus:
IllegalArgumentException- if the required second field or the field arenullor have an unsupported value type.IllegalArgumentException- if parameter nth is less than zero.- Seit:
- 8.0
- Siehe auch:
-
getDataField
Returns the summary field at the specified position in the list.- Parameter:
index- index of summary field to return- Gibt zurück:
- the summary field at the specified position in the list.
- Löst aus:
IndexOutOfBoundsException- if index is out of range.- Seit:
- 8.0
-
getDataField
Returns the summary field with the specified name ornullif the summary field with this name not found in the list. Testing for equality using the case sensitiveequalsmethod.- Angegeben von:
getDataFieldin SchnittstelleBaseDataset- Parameter:
name- the searched name of summary field (nullnot permitted)- Gibt zurück:
- the summary field with the specified name or
null. - Siehe auch:
-
getDataFields
Returns the data fields of this dataset as list.- Angegeben von:
getDataFieldsin SchnittstelleBaseDataset- Gibt zurück:
- the list of data fields
- Siehe auch:
-
removeDataField
public void removeDataField(int index) Removes a data field at the specified position in the list. Note: this dataset is incomplete without any data fields and cannot be used by chart.- Parameter:
index- the specified position- Löst aus:
IndexOutOfBoundsException- if index out of range.- Seit:
- 8.0
- Siehe auch:
-
removeAllDataFields
public void removeAllDataFields()Removes all data fields from this dataset.- Seit:
- 8.0
- Siehe auch:
-
getDataFieldsCount
public int getDataFieldsCount()Returns the count of data fields in this dataset.- Gibt zurück:
- the count
- Seit:
- 8.0
- Siehe auch:
-
getCategoryGroup
Returns the category group. The category group is the first group of chart.- Gibt zurück:
- the group
- Seit:
- 8.0
-
verify
Verifies the group and sum properties of current dataset.- Angegeben von:
verifyin SchnittstelleBaseDataset- Parameter:
style- the chart style- Gibt zurück:
- 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.- Angegeben von:
updateReferencesin SchnittstelleBaseDataset
-
getName
FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.- 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:
getLabelProviderin SchnittstelleBaseDataset- Gibt zurück:
- the LabelProvider responsible for providing the title, footnote, and axis labels
-