Package com.inet.report.chart.dataset
Class StockForAllRecordsDataset
java.lang.Object
com.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.StockForAllRecordsDataset
- All Implemented Interfaces:
BaseDataset,StockDataset,Serializable
- Direct Known Subclasses:
StockForEachRecordDataset
public class StockForAllRecordsDataset
extends com.inet.report.chart.dataset.AbstractDataset
implements StockDataset
This is a dataset used by stock charts.
This evaluates data 'for all records' for four data fields (open, close, high, low).
- Since:
- 8.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intThe count of data fields by this kind of dataset.Fields inherited from interface com.inet.report.chart.dataset.BaseDataset
TOKEN_DATASET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GroupReturns the category group.getChart()Returns the parent chart of this dataset.Returns the data field which provides the close value.protected SummaryFieldgetDataField(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.Returns the data field which provides the high value.com.inet.report.chart.dataset.LabelProviderReturns the LabelProvider responsible for providing the title, footnote, and axis labelsReturns the data field which provides the low value.protected StringgetName()FOR INTERNAL USE ONLYReturns the data field which provides the open value.voidsetCloseField(int summaryOperation, Field field, Field field2nd, int nth) Sets the data field which provides the close value.voidsetHighField(int summaryOperation, Field field, Field field2nd, int nth) Sets the data field which provides the high value.voidsetLowField(int summaryOperation, Field field, Field field2nd, int nth) Sets the data field which provides the low value.voidsetOpenField(int summaryOperation, Field field, Field field2nd, int nth) Sets the data field which provides the open value.voidFOR INTERNAL USE ONLYverify(ChartStyle style) Verifies the group and sum properties of current dataset.Methods inherited from class com.inet.report.chart.dataset.AbstractDataset
getReferencedObject, saveGroups, saveProperties, saveSummaryFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inet.report.chart.dataset.BaseDataset
getReferencedObject
-
Field Details
-
FIELDS_COUNT
protected static final int FIELDS_COUNTThe count of data fields by this kind of dataset.- See Also:
-
-
Constructor Details
-
StockForAllRecordsDataset
Creates a new empty dataset.- Parameters:
chart- the chart (nullnot permitted)- Since:
- 8.0
-
-
Method Details
-
getChart
Returns the parent chart of this dataset.- Specified by:
getChartin interfaceBaseDataset- Returns:
- the chart.
-
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.- Specified by:
getDataFieldin interfaceBaseDataset- Parameters:
name- the searched name of summary field (nullnot permitted)- Returns:
- the summary field with the specified name or
null. - See Also:
-
getDataFields
Returns the data fields of this dataset as list.- Specified by:
getDataFieldsin interfaceBaseDataset- Returns:
- the list of data fields
- See Also:
-
getCategoryGroup
Returns the category group. The category group is the first group of chart.- Returns:
- the group.
- Since:
- 8.0
-
getLowField
Returns the data field which provides the low value.- Specified by:
getLowFieldin interfaceStockDataset- Returns:
- the data field of type
SummaryFieldornullif this field was not initialized. - See Also:
-
setLowField
Sets the data field which provides the low value. Creates a newSummaryFieldwith this field, operation and parameters.
For more information on the supported value types of fields and using parameters 'field2nd' and 'nth' seeSummaryField.- Specified by:
setLowFieldin interfaceStockDataset- Parameters:
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 averageSummaryField.WEIGHTED_AVERAGE.nth- the nth parameter, used for example by summary operationSummaryField.NTH_LARGEST- See Also:
-
getHighField
Returns the data field which provides the high value.- Specified by:
getHighFieldin interfaceStockDataset- Returns:
- the data field of type
SummaryFieldornullif this field was not initialized. - See Also:
-
setHighField
Sets the data field which provides the high value. Creates a newSummaryFieldwith this field, operation and parameters.
For more information on the supported value types of fields and using parameters 'field2nd' and 'nth' seeSummaryField.- Specified by:
setHighFieldin interfaceStockDataset- Parameters:
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 averageSummaryField.WEIGHTED_AVERAGE.nth- the nth parameter, used for example by summary operationSummaryField.NTH_LARGEST- See Also:
-
getOpenField
Returns the data field which provides the open value. This property is for chart styleStockStyle.STOCK_HIGH_LOW_OPEN_CLOSEonly.- Specified by:
getOpenFieldin interfaceStockDataset- Returns:
- the data field of type
SummaryFieldornullif this field was not initialized. - See Also:
-
setOpenField
Sets the data field which provides the open value. This property is for chart styleStockStyle.STOCK_HIGH_LOW_OPEN_CLOSEonly. Creates a newSummaryFieldwith this field, operation and parameters.
For more information on the supported value types of fields and using parameters 'field2nd' and 'nth' seeSummaryField.- Specified by:
setOpenFieldin interfaceStockDataset- Parameters:
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 averageSummaryField.WEIGHTED_AVERAGE.nth- the nth parameter, used for example by summary operationSummaryField.NTH_LARGEST- See Also:
-
getCloseField
Returns the data field which provides the close value. This property is for chart styleStockStyle.STOCK_HIGH_LOW_OPEN_CLOSEonly.- Specified by:
getCloseFieldin interfaceStockDataset- Returns:
- the data field of type
SummaryFieldornullif this field was not initialized. - See Also:
-
setCloseField
Sets the data field which provides the close value. This property is for chart styleStockStyle.STOCK_HIGH_LOW_OPEN_CLOSEonly. Creates a newSummaryFieldwith this field, operation and parameters.
For more information on the supported value types of fields and using parameters 'field2nd' and 'nth' seeSummaryField.- Specified by:
setCloseFieldin interfaceStockDataset- Parameters:
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 averageSummaryField.WEIGHTED_AVERAGE.nth- the nth parameter, used for example by summary operationSummaryField.NTH_LARGEST- See Also:
-
getDataField
Returns the summary field at the specified position in the list.- Parameters:
index- index of summary field to return- Returns:
- the summary field at the specified position in the list.
- Throws:
IndexOutOfBoundsException- if index is out of range.- Since:
- 8.0
-
verify
Verifies the group and sum properties of current dataset.- Specified by:
verifyin interfaceBaseDataset- Parameters:
style- the chart style- Returns:
- the error message or empty string if all properties are correct.
-
updateReferences
public void updateReferences()FOR INTERNAL USE ONLY- Specified by:
updateReferencesin interfaceBaseDataset
-
getName
FOR INTERNAL USE ONLY- Returns:
- name name for this dataset
-
getLabelProvider
public com.inet.report.chart.dataset.LabelProvider getLabelProvider()Returns the LabelProvider responsible for providing the title, footnote, and axis labels- Specified by:
getLabelProviderin interfaceBaseDataset- Returns:
- the LabelProvider responsible for providing the title, footnote, and axis labels
-