public class XYForAllRecordsDataset extends com.inet.report.chart.dataset.AbstractDataset implements XYDataset
Modifier and Type | Field and Description |
---|---|
protected static int |
FIELDS_COUNT
The count of data fields by this kind of dataset.
|
TOKEN_DATASET
Constructor and Description |
---|
XYForAllRecordsDataset(Chart2 chart)
Creates a new empty dataset.
|
Modifier and Type | Method and Description |
---|---|
protected Group |
getCategoryGroup()
Returns the category group.
|
Chart2 |
getChart()
Returns the parent chart of this dataset.
|
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. |
protected SummaryField |
getDataField(int index)
Returns the summary field at the specified position in the list.
|
java.util.List |
getDataFields()
Returns the data fields of this dataset as list.
|
com.inet.report.chart.dataset.LabelProvider |
getLabelProvider()
Returns the LabelProvider responsible for providing the title, footnote, and axis labels
|
protected java.lang.String |
getName() |
SummaryField |
getSizeField()
Returns the data field which provides the size of the bubble.
|
SummaryField |
getXField()
Returns the data field which provides the x coordinates of the item label.
|
SummaryField |
getYField()
Returns the data field which provides the y coordinates of the item label.
|
void |
setSizeField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the size of the bubble.
|
void |
setXField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the x coordinate of item.
|
void |
setYField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the y coordinate of item.
|
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset.
|
protected static final int FIELDS_COUNT
public XYForAllRecordsDataset(Chart2 chart)
chart
- the chart (null
not permitted)public Chart2 getChart()
getChart
in interface BaseDataset
public SummaryField getDataField(java.lang.String name)
null
if the summary field with this name not found in the list.
Testing for equality using the case sensitive equals method.getDataField
in interface BaseDataset
name
- the searched name of summary field (null
not permitted)null
.BaseDataset.getDataFields()
public java.util.List getDataFields()
getDataFields
in interface BaseDataset
BaseDataset.getDataField(String)
protected Group getCategoryGroup()
public SummaryField getSizeField()
XYStyle.BUBBLE
only.getSizeField
in interface XYDataset
SummaryField
or null
if this field was not initialized.XYDataset.setSizeField(int, Field, Field, int)
public void setSizeField(int summaryOperation, Field field, Field field2nd, int nth)
XYStyle.BUBBLE
only.
Creates a new SummaryField
with this field, operation and parameters.SummaryField
.
setSizeField
in interface XYDataset
summaryOperation
- the summary operation. This only supports operations with number resultsfield
- the data fieldfield2nd
- the second data field, used for example for weights in weighted average SummaryField.WEIGHTED_AVERAGE
.nth
- the nth parameter, used e.g. by summary operation SummaryField.NTH_LARGEST
XYDataset.getSizeField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getXField()
getXField
in interface XYDataset
SummaryField
or null
if this field was not initialized.XYDataset.setXField(int, Field, Field, int)
public void setXField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with this field, operation and parameters.SummaryField
.
setXField
in interface XYDataset
summaryOperation
- the summary operation. This only supports operations with number resultsfield
- the data fieldfield2nd
- the second data field, used for example for weights in weighted average SummaryField.WEIGHTED_AVERAGE
.nth
- the nth parameter, used e.g. by summary operation SummaryField.NTH_LARGEST
XYDataset.getSizeField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getYField()
getYField
in interface XYDataset
SummaryField
or null
if this field was not initialized.XYDataset.setYField(int, Field, Field, int)
public void setYField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with this field, operation and parameters.SummaryField
.
setYField
in interface XYDataset
summaryOperation
- the summary operation. This only supports operations with number resultsfield
- the data fieldfield2nd
- the second data field, used for example for weights in weighted average SummaryField.WEIGHTED_AVERAGE
.nth
- the nth parameter, used e.g. by summary operation SummaryField.NTH_LARGEST
XYDataset.getSizeField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
protected SummaryField getDataField(int index)
index
- index of summary field to returnjava.lang.IndexOutOfBoundsException
- if index is out of range.public java.lang.String verify(ChartStyle style)
verify
in interface BaseDataset
style
- the chart stylepublic com.inet.report.chart.dataset.LabelProvider getLabelProvider()
getLabelProvider
in interface BaseDataset
protected java.lang.String getName()
getName
in class com.inet.report.chart.dataset.AbstractDataset
Copyright © 1999-2019 by i-net software GmbH