Class LineSeries

  • Direct Known Subclasses:
    RadarSeries

    public class LineSeries
    extends XYSeries
    Represents series for a chart where the data-points are connected with lines.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineSeries​(java.lang.String name, java.lang.String[] x, java.lang.String[] y, java.lang.String color, java.lang.Boolean smooth, java.lang.String symbol, java.lang.String symbolSize, java.lang.String lineThickness, java.lang.String lineStyle)
      This object represents series for a line chart (where data-points are connected with lines).
    • Constructor Detail

      • LineSeries

        public LineSeries​(java.lang.String name,
                          java.lang.String[] x,
                          java.lang.String[] y,
                          java.lang.String color,
                          java.lang.Boolean smooth,
                          java.lang.String symbol,
                          java.lang.String symbolSize,
                          java.lang.String lineThickness,
                          java.lang.String lineStyle)
        This object represents series for a line chart (where data-points are connected with lines).
        Parameters:
        name - Name of the chart.
        x - X-data of the chart.
        y - Y-data of the chart.
        color - Color of the chart.
        smooth - Whether the corners of the angels formed in the data-points are smoothened.
        symbol - Symbol representing the data-points. Can be square, diamond or triangle.
        symbolSize - Size of the symbol representing the data-points in (in em, pt, px, cm or in) e.g. : 20 pt, by default: automatic.
        lineThickness - Thickness of the connecting line in em, pt, px, cm or in. e.g. : 20 pt.
        lineStyle - Style of the line. Supported options can be found online on the Cloud Office Print documentation.
    • Method Detail

      • getSmooth

        public java.lang.Boolean getSmooth()
        Returns:
        Whether the corners of the angels formed in the data-points are smoothened.
      • setSmooth

        public void setSmooth​(java.lang.Boolean smooth)
        -
        Parameters:
        smooth - Whether the corners of the angels formed in the data-points are smoothened.
      • getSymbol

        public java.lang.String getSymbol()
        Returns:
        Symbol representing the datapoints. Can be square, diamond or triangle.
      • setSymbol

        public void setSymbol​(java.lang.String symbol)
        Parameters:
        symbol - Symbol representing the data-points. Can be square, diamond or triangle.
      • getSymbolSize

        public java.lang.String getSymbolSize()
        Returns:
        Size of the symbol representing the data-points in (in em, pt, px, cm or in), by default: automatic.
      • setSymbolSize

        public void setSymbolSize​(java.lang.String symbolSize)
        Parameters:
        symbolSize - Size of the symbol representing the data-points in (in em, pt, px, cm or in) e.g. : 20 pt, by default: automatic.
      • getLineThickness

        public java.lang.String getLineThickness()
        Returns:
        Thickness of the connecting line in em, pt, px, cm or in. e.g. : 20 pt.
      • setLineThickness

        public void setLineThickness​(java.lang.String lineThickness)
        Parameters:
        lineThickness - Thickness of the connecting line in em, pt, px, cm or in. e.g. : 20 pt.
      • getLineStyle

        public java.lang.String getLineStyle()
        Returns:
        Style of the line. Supported options can be found online on the Cloud Office Print documentation.
      • setLineStyle

        public void setLineStyle​(java.lang.String lineStyle)
        Parameters:
        lineStyle - Style of the line. Supported options can be found online on the Cloud Office Print documentation.
      • 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.