|
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.StockPlot
public class StockPlot
A general class for plotting data in the form of an open and close value or an open, close, high an low value.
This plot can use data from any class that implements the StockDataset interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot |
|---|
AbstractPlot.GradientSetting |
| Field Summary | |
|---|---|
static StockStyle |
DEFAULT_STYLE
Default chart style with this plot. |
| 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 |
| Constructor Summary | |
|---|---|
StockPlot()
Creates a stock plot with default properties. |
|
StockPlot(StockStyle style)
Creates a stock plot with defined chart style. |
|
| Method Summary | |
|---|---|
GroupAxis |
getCategoryAxis()
Returns the category axis for this plot. |
ContinuousNumberAxis |
getDataAxis()
Returns the data axis for this plot. |
StockDataset |
getDataset()
Returns a dataset of type StockDataset. |
int |
getItemLabelAlignment()
Returns the label alignment of the items on this plot. |
int |
getItemLabelPosition()
Returns the item label position on the chart item. |
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. |
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(GroupAxis categoryAxis)
Sets the category axis for this plot. |
void |
setDataAxis(ContinuousNumberAxis dataAxis)
Sets the data axis for this plot. |
void |
setDataset(StockDataset dataset)
Sets the data container for this plot. |
void |
setItemLabelAlignment(int itemLabelAlignment)
Sets the item label alignment. |
void |
setItemLabelPosition(int itemLabelPosition)
Sets the item label position on the chart item. |
void |
setStyle(StockStyle style)
Sets the chart style of this plot. |
| Field Detail |
|---|
public static final StockStyle DEFAULT_STYLE
| Constructor Detail |
|---|
public StockPlot()
public StockPlot(StockStyle style)
style - the chart style (null not permitted)StockStyle| Method Detail |
|---|
public StockDataset getDataset()
StockDataset.
setDataset(StockDataset),
StockForAllRecordsDataset,
StockForEachRecordDataset,
StockOneGroupDatasetpublic void setDataset(StockDataset dataset)
dataset - the dataset to set (null not permitted)getDataset(),
StockDataset,
StockForAllRecordsDataset,
StockForEachRecordDataset,
StockOneGroupDatasetpublic GroupAxis getCategoryAxis()
setCategoryAxis(GroupAxis),
GroupAxispublic void setCategoryAxis(GroupAxis categoryAxis)
categoryAxis - the category axis (null not permitted)getCategoryAxis(),
GroupAxispublic ContinuousNumberAxis getDataAxis()
setDataAxis(ContinuousNumberAxis),
ContinuousNumberAxispublic void setDataAxis(ContinuousNumberAxis dataAxis)
dataAxis - the data axis (null not permitted)getDataAxis(),
ContinuousNumberAxispublic ChartStyle getStyle()
getStyle in class AbstractPlotBarStyle.BAR2D,
LineStyle.LINE_MARKER,
AreaStyle.AREA2D_STACKEDpublic void setStyle(StockStyle style)
style - the style (null not permitted)getStyle(),
StockStylepublic int getItemLabelAlignment()
setItemLabelAlignment(int),
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICALpublic void setItemLabelAlignment(int itemLabelAlignment)
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO.
itemLabelAlignment - the item label alignment
java.lang.IllegalArgumentException - by unknown alignment.getItemLabelAlignment(),
BarPlot.ITEM_LABEL_ALIGNMENT_AUTO,
BarPlot.ITEM_LABEL_ALIGNMENT_HORIZONTAL,
BarPlot.ITEM_LABEL_ALIGNMENT_VERTICALpublic int getItemLabelPosition()
setItemLabelPosition(int),
StandardPlot.ITEM_LABEL_POSITION_BASE,
StandardPlot.ITEM_LABEL_POSITION_CENTER,
StandardPlot.ITEM_LABEL_POSITION_INSIDE_OF_MAX,
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAXpublic void setItemLabelPosition(int itemLabelPosition)
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX.
itemLabelPosition - the itemLabelPosition to set
java.lang.IllegalArgumentException - by unknown position.setItemLabelPosition(int),
StandardPlot.ITEM_LABEL_POSITION_BASE,
StandardPlot.ITEM_LABEL_POSITION_CENTER,
StandardPlot.ITEM_LABEL_POSITION_INSIDE_OF_MAX,
StandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAXpublic void refreshAutoTitles(Chart2 chart)
refreshAutoTitles in interface ChartPlotrefreshAutoTitles in class AbstractPlotchart - the chart
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 | |||||||