|
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.plot.AbstractPlot
com.inet.report.chart.plot.StandardPlot
public abstract class StandardPlot
A general plotting class that uses BaseAxis as category axis,
DiscreteNumberAxis as data axis and StandardDataset as data source.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
AbstractPlot.GradientSetting |
| Field Summary | |
|---|---|
static int |
ITEM_LABEL_POSITION_BASE
The label position over the bottom of the item. |
static int |
ITEM_LABEL_POSITION_CENTER
The label position in the center of the item. |
static int |
ITEM_LABEL_POSITION_INSIDE_OF_MAX
The label position inside the max of the item. |
static int |
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
The label position outside the max of the item. |
| Fields inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
DEFAULT_COLOR_SEQUENCE, DEFAULT_FOREGROUND_ALPHA, DEFAULT_ITEM_LABEL_COLOR, DEFAULT_ITEM_LABEL_FONT, DEFAULT_OUTLINE_COLOR, DEFAULT_OUTLINE_STYLE, DEFAULT_OUTLINE_WIDTH, TOKEN_PLOT |
| Method Summary | |
|---|---|
BaseAxis |
getCategoryAxis()
Returns the category axis. |
DiscreteNumberAxis |
getDataAxis()
Returns the data axis of this plot. |
StandardDataset |
getDataset()
Returns the data container of this plot. |
int |
getItemLabelPosition()
Returns the item label position on the chart item. |
abstract ChartStyle |
getStyle()
Returns the style of this chart, ie. the general category this plot belongs to. |
protected java.lang.StringBuffer |
getSubProperties(int depth)
Returns the serialized simple properties of subclasses. |
boolean |
isShowCumulativeValues()
Returns the flag that controls whether or not the item label labels shows cumulative or absolute values. |
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Reads the chart properties from the DOMParser Element. |
void |
refreshAutoTitles(Chart2 chart)
Reads out the data column names from dataset and refreshes the chart labels. |
protected void |
saveSubProperties(java.io.PrintWriter out,
int depth)
Writes the intern properties to output. |
void |
setCategoryAxis(BaseAxis categoryAxis)
Sets the category axis for this plot. |
void |
setDataAxis(DiscreteNumberAxis dataAxis)
Sets the data axis for this plot. |
void |
setDataset(StandardDataset dataset)
Sets the data container for this plot. |
void |
setItemLabelPosition(int itemLabelPosition)
Sets the item label position on the chart item. |
void |
setShowCumulativeValues(boolean showCumulativeValues)
Sets the flag that controls whether or not the item labels shows cumulative or absolute values. |
| Field Detail |
|---|
public static final int ITEM_LABEL_POSITION_OUTSIDE_OF_MAX
public static final int ITEM_LABEL_POSITION_INSIDE_OF_MAX
public static final int ITEM_LABEL_POSITION_CENTER
public static final int ITEM_LABEL_POSITION_BASE
| Method Detail |
|---|
public StandardDataset getDataset()
setDataset(StandardDataset),
ForAllRecordsDataset,
ForEachRecordDataset,
OneGroupDataset,
TwoGroupsDatasetpublic void setDataset(StandardDataset dataset)
dataset - the dataset (null not permitted)getDataset(),
StandardDataset,
ForAllRecordsDataset,
ForEachRecordDataset,
OneGroupDataset,
TwoGroupsDatasetpublic BaseAxis getCategoryAxis()
setCategoryAxis(BaseAxis),
BaseAxispublic void setCategoryAxis(BaseAxis categoryAxis)
categoryAxis - the category axis (null not permitted)getCategoryAxis(),
BaseAxispublic DiscreteNumberAxis getDataAxis()
setDataAxis(DiscreteNumberAxis),
DiscreteNumberAxispublic void setDataAxis(DiscreteNumberAxis dataAxis)
dataAxis - the data axis (null not permitted)getDataAxis(),
DiscreteNumberAxispublic boolean isShowCumulativeValues()
true for cumulative false for absolute values.setShowCumulativeValues(boolean)public void setShowCumulativeValues(boolean showCumulativeValues)
showCumulativeValues - the flag true for cumulative false for absolute valuesisShowCumulativeValues()public int getItemLabelPosition()
setItemLabelPosition(int),
ITEM_LABEL_POSITION_BASE,
ITEM_LABEL_POSITION_CENTER,
ITEM_LABEL_POSITION_INSIDE_OF_MAX,
ITEM_LABEL_POSITION_OUTSIDE_OF_MAXpublic void setItemLabelPosition(int itemLabelPosition)
ITEM_LABEL_POSITION_OUTSIDE_OF_MAX.
itemLabelPosition - the itemLabelPosition to set
java.lang.IllegalArgumentException - by unknown position.setItemLabelPosition(int),
ITEM_LABEL_POSITION_BASE,
ITEM_LABEL_POSITION_CENTER,
ITEM_LABEL_POSITION_INSIDE_OF_MAX,
ITEM_LABEL_POSITION_OUTSIDE_OF_MAXpublic void refreshAutoTitles(Chart2 chart)
refreshAutoTitles in interface ChartPlotrefreshAutoTitles in class AbstractPlotchart - the chartpublic abstract ChartStyle getStyle()
getStyle in class AbstractPlotBarStyle.BAR2D,
LineStyle.LINE_MARKER,
AreaStyle.AREA2D_STACKED
protected void saveSubProperties(java.io.PrintWriter out,
int depth)
PrintWriter without building a StringBuffer.
saveSubProperties in class AbstractPlotout - the outputdepth - the depth of XML indentprotected java.lang.StringBuffer getSubProperties(int depth)
getSubProperties in class AbstractPlotdepth - the depth of XML indent
public void readProperties(org.w3c.dom.Element element,
Chart2 chart)
readProperties in interface ChartPlotreadProperties in class AbstractPlotelement - the DOMParser Elementchart - the chart
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||