Class AreaSeries


  • public class AreaSeries
    extends XYSeries
    This class represents series for an area chart.
    • Constructor Summary

      Constructors 
      Constructor Description
      AreaSeries​(java.lang.String name, java.lang.String[] x, java.lang.String[] y, java.lang.String color, java.lang.Float opacity)
      This object represents series for a pie chart.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getColor()  
      com.google.gson.JsonObject getJSON()  
      java.lang.Float getOpacity()
      Note: Decimal value between 0 and 1.
      void setColor​(java.lang.String color)  
      void setOpacity​(java.lang.Float opacity)
      Note: Decimal value between 0 and 1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AreaSeries

        public AreaSeries​(java.lang.String name,
                          java.lang.String[] x,
                          java.lang.String[] y,
                          java.lang.String color,
                          java.lang.Float opacity)
        This object represents series for a pie chart.
        Parameters:
        name - Name of the chart.
        x - X-data of the chart.
        y - Y-data of the chart.
        color - Color of the chart.
        opacity - Opacity of the chart. Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.
    • Method Detail

      • getOpacity

        public java.lang.Float getOpacity()
        Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.
        Returns:
        Opacity of the chart.
      • setOpacity

        public void setOpacity​(java.lang.Float opacity)
        Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.
        Parameters:
        opacity - Opacity of the chart.
      • getColor

        public java.lang.String getColor()
        Overrides:
        getColor in class XYSeries
        Returns:
        Chart color in CSS format.
      • setColor

        public void setColor​(java.lang.String color)
        Overrides:
        setColor in class XYSeries
        Parameters:
        color - Chart color in CSS format.
      • getJSON

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