Klasse StockPlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.StockPlot
- Alle implementierten Schnittstellen:
ChartPlot, Serializable
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.- Seit:
- 8.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen AbstractPlot
AbstractPlot.GradientSetting -
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a stock plot with default properties.StockPlot(StockStyle style) Creates a stock plot with defined chart style. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the category axis for this plot.Returns the data axis for this plot.Returns a dataset of typeStockDataset.intReturns the label alignment of the items on this plot.intReturns the item label position on the chart item.getStyle()Returns the style of this chart, ie. the general category this plot belongs to.protected StringBuildergetSubProperties(int depth) Returns the serialized simple properties of subclasses.voidreadProperties(Element element, Chart2 chart) Reads the chart properties from the DOMParser Element.voidrefreshAutoTitles(Chart2 chart) Reads out the data column names from dataset and refreshes the chart labels.protected voidsaveSubProperties(PrintWriter out, int depth) Writes the intern properties to output.voidsetCategoryAxis(GroupAxis categoryAxis) Sets the category axis for this plot.voidsetDataAxis(ContinuousNumberAxis dataAxis) Sets the data axis for this plot.voidsetDataset(StockDataset dataset) Sets the data container for this plot.voidsetItemLabelAlignment(int itemLabelAlignment) Sets the item label alignment.voidsetItemLabelPosition(int itemLabelPosition) Sets the item label position on the chart item.voidsetStyle(StockStyle style) Sets the chart style of this plot.Von Klasse geerbte Methoden AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemLabelFormatFormula, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemLabelFormatFormula, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
-
Felddetails
-
DEFAULT_STYLE
Default chart style with this plot.
-
-
Konstruktordetails
-
StockPlot
public StockPlot()Creates a stock plot with default properties.- Seit:
- 8.0
-
StockPlot
Creates a stock plot with defined chart style. Initializes all properties with default values.- Parameter:
style- the chart style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
-
Methodendetails
-
getDataset
Returns a dataset of typeStockDataset.- Gibt zurück:
- the dataset
- Seit:
- 8.0
- Siehe auch:
-
setDataset
Sets the data container for this plot.- Parameter:
dataset- the dataset to set (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getCategoryAxis
Returns the category axis for this plot. The category axis shows the values of the first group field.- Gibt zurück:
- the categoryAxis
- Seit:
- 8.0
- Siehe auch:
-
setCategoryAxis
Sets the category axis for this plot. The category axis shows the values of the first group field.- Parameter:
categoryAxis- the category axis (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getDataAxis
Returns the data axis for this plot. The data axis shows the summarized values of data fields.- Gibt zurück:
- the dataAxis
- Seit:
- 8.0
- Siehe auch:
-
setDataAxis
Sets the data axis for this plot. The data axis shows the summarized values of data fields.- Parameter:
dataAxis- the data axis (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to.- Angegeben von:
getStylein KlasseAbstractPlot- Gibt zurück:
- the style
- Siehe auch:
-
setStyle
Sets the chart style of this plot.- Parameter:
style- the style (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getItemLabelAlignment
public int getItemLabelAlignment()Returns the label alignment of the items on this plot.- Gibt zurück:
- the alignment.
- Seit:
- 8.0
- Siehe auch:
-
setItemLabelAlignment
public void setItemLabelAlignment(int itemLabelAlignment) Sets the item label alignment. An item label is a label with name and value on each chart item. Default alignment isBarPlot.ITEM_LABEL_ALIGNMENT_AUTO.- Parameter:
itemLabelAlignment- the item label alignment- Löst aus:
IllegalArgumentException- by unknown alignment.- Seit:
- 8.0
- Siehe auch:
-
getItemLabelPosition
public int getItemLabelPosition()Returns the item label position on the chart item.- Gibt zurück:
- the item label position.
- Seit:
- 8.0
- Siehe auch:
-
setItemLabelPosition
public void setItemLabelPosition(int itemLabelPosition) Sets the item label position on the chart item. An item label is a label with name and value on each chart item. Default position isStandardPlot.ITEM_LABEL_POSITION_OUTSIDE_OF_MAX.- Parameter:
itemLabelPosition- the itemLabelPosition to set- Löst aus:
IllegalArgumentException- by unknown position.- Seit:
- 8.0
- Siehe auch:
-
refreshAutoTitles
Reads out the data column names from dataset and refreshes the chart labels. Please use this function to refresh the chart labels if the data was be changed.- Angegeben von:
refreshAutoTitlesin SchnittstelleChartPlot- Angegeben von:
refreshAutoTitlesin KlasseAbstractPlot- Parameter:
chart- the chart
-
saveSubProperties
Writes the intern properties to output. Overwrites this to save intern properties direct toPrintWriterwithout building aStringBuilder.- Setzt außer Kraft:
saveSubPropertiesin KlasseAbstractPlot- Parameter:
out- the outputdepth- the depth of XML indent
-
getSubProperties
Returns the serialized simple properties of subclasses.- Setzt außer Kraft:
getSubPropertiesin KlasseAbstractPlot- Parameter:
depth- the depth of XML indent- Gibt zurück:
- the properties.
-
readProperties
Reads the chart properties from the DOMParser Element.- Angegeben von:
readPropertiesin SchnittstelleChartPlot- Setzt außer Kraft:
readPropertiesin KlasseAbstractPlot- Parameter:
element- the DOMParser Elementchart- the chart
-
getReferencedObject
- Angegeben von:
getReferencedObjectin SchnittstelleChartPlot- Setzt außer Kraft:
getReferencedObjectin KlasseAbstractPlot- Gibt zurück:
- the list of objects.
-