public class StockForAllRecordsDataset extends com.inet.report.chart.dataset.AbstractDataset implements StockDataset
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 |
---|
StockForAllRecordsDataset(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 |
getCloseField()
Returns the data field which provides the close value.
|
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.
|
SummaryField |
getHighField()
Returns the data field which provides the high value.
|
com.inet.report.chart.dataset.LabelProvider |
getLabelProvider()
Returns the LabelProvider responsible for providing the title, footnote, and axis labels
|
SummaryField |
getLowField()
Returns the data field which provides the low value.
|
SummaryField |
getOpenField()
Returns the data field which provides the open value.
|
void |
setCloseField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the close value.
|
void |
setHighField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the high value.
|
void |
setLowField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the low value.
|
void |
setOpenField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which provides the open value.
|
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset.
|
protected static final int FIELDS_COUNT
public StockForAllRecordsDataset(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 getLowField()
getLowField
in interface StockDataset
SummaryField
or null
if this field was not initialized.StockDataset.setLowField(int, Field, Field, int)
public void setLowField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with this field, operation and parameters.SummaryField
.
setLowField
in interface StockDataset
summaryOperation
- the summary operation. This only supports operations with number results.field
- the data fieldfield2nd
- 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
StockDataset.getCloseField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getHighField()
getHighField
in interface StockDataset
SummaryField
or null
if this field was not initialized.StockDataset.setHighField(int, Field, Field, int)
public void setHighField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with this field, operation and parameters.SummaryField
.
setHighField
in interface StockDataset
summaryOperation
- the summary operation. This only supports operations with number results.field
- the data fieldfield2nd
- 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
StockDataset.getCloseField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getOpenField()
StockStyle.STOCK_HIGH_LOW_OPEN_CLOSE
only.getOpenField
in interface StockDataset
SummaryField
or null
if this field was not initialized.StockDataset.setOpenField(int, Field, Field, int)
public void setOpenField(int summaryOperation, Field field, Field field2nd, int nth)
StockStyle.STOCK_HIGH_LOW_OPEN_CLOSE
only.
Creates a new SummaryField
with this field, operation and parameters.SummaryField
.
setOpenField
in interface StockDataset
summaryOperation
- the summary operation. This only supports operations with number results.field
- the data fieldfield2nd
- 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
StockDataset.getCloseField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getCloseField()
StockStyle.STOCK_HIGH_LOW_OPEN_CLOSE
only.getCloseField
in interface StockDataset
SummaryField
or null
if this field was not initialized.StockDataset.setCloseField(int, Field, Field, int)
public void setCloseField(int summaryOperation, Field field, Field field2nd, int nth)
StockStyle.STOCK_HIGH_LOW_OPEN_CLOSE
only.
Creates a new SummaryField
with this field, operation and parameters.SummaryField
.
setCloseField
in interface StockDataset
summaryOperation
- the summary operation. This only supports operations with number results.field
- the data fieldfield2nd
- 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
StockDataset.getCloseField()
,
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
Copyright © 1999-2019 by i-net software GmbH