|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.dataset.AbstractDataset
com.inet.report.chart.dataset.TwoGroupsDataset
public class TwoGroupsDataset
This is a dataset used by standard (bar, line, area) charts. This evaluates data sorted by two groups for one data field.
| Field Summary |
|---|
| Fields inherited from interface com.inet.report.chart.dataset.BaseDataset |
|---|
TOKEN_DATASET |
| Constructor Summary | |
|---|---|
TwoGroupsDataset(Chart2 chart)
Creates a new empty dataset. |
|
| Method Summary | |
|---|---|
Group |
getCategoryGroup()
Returns the category group. |
Chart2 |
getChart()
Returns the parent chart of this dataset. |
SummaryField |
getDataField()
Returns the data field. |
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. |
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()
FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset. |
Group |
getSeriesGroup()
Returns the series group. |
void |
removeCategoryGroup()
Removes the category group. |
void |
removeDataField()
Removes the data field. |
void |
removeSeriesGroup()
Removes the series group. |
protected void |
saveGroups(java.io.PrintWriter out,
int depth)
Writes the groups properties to output. |
void |
setCategoryGroup(Field field)
Creates a category group on this field. |
void |
setDataField(int summaryOperation,
Field field,
Field field2nd,
int nth)
Sets the data field which values will be calculated by the summary operation and shown in the chart as i.e. bar length. |
void |
setSeriesGroup(Field field)
Creates a series group on this field. |
java.lang.String |
verify(ChartStyle style)
Verifies the group and sum properties of current dataset. |
| Constructor Detail |
|---|
public TwoGroupsDataset(Chart2 chart)
chart - the chart (null not permitted)| Method Detail |
|---|
public Chart2 getChart()
getChart in interface BaseDatasetpublic Group getCategoryGroup()
null if this group was not initialized.setCategoryGroup(Field),
removeCategoryGroup()public void setCategoryGroup(Field field)
PlotOrientation.VERTICAL.
To change the sort order of the data in this group get this with getCategoryGroup() and use the Group properties.
SummaryField, SpecialField and GroupField are unsupported field types.
field - the group field (null not permitted)
java.lang.IllegalArgumentException - if field is null or has an unsupported field type.Group,
getCategoryGroup(),
removeCategoryGroup()public void removeCategoryGroup()
setCategoryGroup(Field),
getCategoryGroup()public Group getSeriesGroup()
null if this group was not initialized.setSeriesGroup(Field),
removeSeriesGroup()public void setSeriesGroup(Field field)
PlotOrientation.VERTICAL.
The series group gets a own group axis by a chart with three axis (i.e. 3D chart) or it handles data grouped by category group.
To change the sort order of the data in this group get this with getSeriesGroup() and use the Group properties.
SummaryField, SpecialField and GroupField are unsupported field types.
field - (null not permitted)
java.lang.IllegalArgumentException - if field is null or has an unsupported field type.Group,
getSeriesGroup(),
removeSeriesGroup()public void removeSeriesGroup()
setSeriesGroup(Field),
getSeriesGroup()public SummaryField getDataField()
SummaryField.setDataField(int, Field, Field, int)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 BaseDatasetname - the searched name of summary field (null not permitted)
null.BaseDataset.getDataFields()public java.util.List getDataFields()
getDataFields in interface BaseDatasetBaseDataset.getDataField(String)
public void setDataField(int summaryOperation,
Field field,
Field field2nd,
int nth)
SummaryField with this field, operation and parameters.SummaryField.
summaryOperation - the summary operationfield - 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
java.lang.IllegalArgumentException - if the first or second field are required and null or have an unsupported value type.
java.lang.IllegalArgumentException - if nth is less than zero.getDataField(),
SummaryField.setSummaryOperation(int),
SummaryField.setField(Field),
SummaryField.setField2nd(Field),
SummaryField.setSummaryNth(int)public void removeDataField()
setDataField(int, Field, Field, int),
getDataField()public java.lang.String verify(ChartStyle style)
verify in interface BaseDatasetstyle - the chart style
protected void saveGroups(java.io.PrintWriter out,
int depth)
PrintWriter without building a StringBuffer.
saveGroups in class com.inet.report.chart.dataset.AbstractDatasetout - the outputdepth - the depth of XML indentprotected java.lang.String getName()
getName in class com.inet.report.chart.dataset.AbstractDatasetpublic com.inet.report.chart.dataset.LabelProvider getLabelProvider()
getLabelProvider in interface BaseDataset
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||