Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class XYSeries
        Returns:
        JsonArray of the data of the serie.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        No color needed for stockseries.
        Overrides:
        getJSON in class XYSeries
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.