Class StockSeries
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.Charts.Series.XYSeries
-
- com.cloudofficeprint.RenderElements.Charts.Series.StockSeries
-
public class StockSeries extends XYSeries
This class represents series for stock charts.
-
-
Constructor Summary
Constructors Constructor Description StockSeries(java.lang.String name, java.lang.String[] x, java.lang.Integer[] high, java.lang.Integer[] low, java.lang.Integer[] close, java.lang.Integer[] open, java.lang.Integer[] volume)
This object represents series for a stock chart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer[]
getClose()
java.lang.Integer[]
getHigh()
com.google.gson.JsonObject
getJSON()
No color needed for stockseries.com.google.gson.JsonArray
getJSONData()
java.lang.Integer[]
getLow()
java.lang.Integer[]
getOpen()
java.lang.Integer[]
getVolume()
void
setClose(java.lang.Integer[] close)
void
setHigh(java.lang.Integer[] high)
void
setLow(java.lang.Integer[] low)
void
setOpen(java.lang.Integer[] open)
void
setVolume(java.lang.Integer[] volume)
-
-
-
Constructor Detail
-
StockSeries
public StockSeries(java.lang.String name, java.lang.String[] x, java.lang.Integer[] high, java.lang.Integer[] low, java.lang.Integer[] close, java.lang.Integer[] open, java.lang.Integer[] volume)
This object represents series for a stock chart.- Parameters:
name
- Name of the chart.x
- X-data of the chart.high
- High values for the open-high-low-close chart.low
- Low values for the open-high-low-close chart.close
- Close values for the open-high-low-close chart.open
- Open values for the open-high-low-close chart.volume
- Volume values for the open-high-low-close chart.
-
-
Method Detail
-
getHigh
public java.lang.Integer[] getHigh()
- Returns:
- High values for the open-high-low-close chart.
-
setHigh
public void setHigh(java.lang.Integer[] high)
- Parameters:
high
- High values for the open-high-low-close chart.
-
getLow
public java.lang.Integer[] getLow()
- Returns:
- Low values for the open-high-low-close chart.
-
setLow
public void setLow(java.lang.Integer[] low)
- Parameters:
low
- Low values for the open-high-low-close chart.
-
getClose
public java.lang.Integer[] getClose()
- Returns:
- Close values for the open-high-low-close chart.
-
setClose
public void setClose(java.lang.Integer[] close)
- Parameters:
close
- Close values for the open-high-low-close chart.
-
getOpen
public java.lang.Integer[] getOpen()
- Returns:
- Open values for the open-high-low-close chart.
-
setOpen
public void setOpen(java.lang.Integer[] open)
- Parameters:
open
- Open values for the open-high-low-close chart.
-
getVolume
public java.lang.Integer[] getVolume()
- Returns:
- Volume values for the open-high-low-close chart.
-
setVolume
public void setVolume(java.lang.Integer[] volume)
- Parameters:
volume
- Volume values for the open-high-low-close chart.
-
getJSONData
public com.google.gson.JsonArray getJSONData()
- Overrides:
getJSONData
in classXYSeries
- Returns:
- JsonArray of the data of the serie.
-
-