public class GanttForEachRecordDataset extends com.inet.report.chart.dataset.AbstractDataset implements GanttDataset
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 |
---|
GanttForEachRecordDataset(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.
|
SummaryField |
getEndField()
Returns the data field which indicates the end position of each interval bar.
|
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 |
getProgressField()
Returns the data field which indicates the progress status of each interval bar.
|
SummaryField |
getStartField()
Returns the data field which indicates the start position of each interval bar.
|
void |
setEndField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which indicates the end position of each interval bar.
|
void |
setProgressField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which indicates the progress status of each interval bar.
|
void |
setStartField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which indicates the start position of each interval bar.
|
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset.
|
protected static final int FIELDS_COUNT
public GanttForEachRecordDataset(Chart2 chart)
chart
- the chart (null
not permitted)public Chart2 getChart()
getChart
in interface BaseDataset
protected Group getCategoryGroup()
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)
public SummaryField getStartField()
getStartField
in interface GanttDataset
SummaryField
or null
if this field was not initialized.GanttDataset.setStartField(int, Field, Field, int)
public void setStartField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with these parameters.SummaryField
.
setStartField
in interface GanttDataset
summaryOperation
- the summary operation. This supports operations with date result values onlyfield
- the data fieldfield2nd
- the second data field, this field can currently be ignored.nth
- the nth parameter, used for example by summary operation SummaryField.NTH_LARGEST
GanttDataset.getStartField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getEndField()
getEndField
in interface GanttDataset
SummaryField
or null
if this field was not initialized.GanttDataset.setEndField(int, Field, Field, int)
public void setEndField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with these parameters.SummaryField
.
setEndField
in interface GanttDataset
summaryOperation
- the summary operation. This supports operations with date result values onlyfield
- the data fieldfield2nd
- the second data field, this field can currently be ignored.nth
- the nth parameter, used for example by summary operation SummaryField.NTH_LARGEST
GanttDataset.getEndField()
,
SummaryField.setSummaryOperation(int)
,
SummaryField.setField(Field)
,
SummaryField.setField2nd(Field)
,
SummaryField.setSummaryNth(int)
public SummaryField getProgressField()
getProgressField
in interface GanttDataset
SummaryField
or null
if this field was not initialized.GanttDataset.setProgressField(int, Field, Field, int)
public void setProgressField(int summaryOperation, Field field, Field field2nd, int nth)
SummaryField
with these parameters.SummaryField
.
setProgressField
in interface GanttDataset
summaryOperation
- the summary operation. This supports operations with number result values onlyfield
- the data fieldfield2nd
- the second data field, this field can currently be ignored.nth
- the nth parameter, used for example by summary operation SummaryField.NTH_LARGEST
GanttDataset.getEndField()
,
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