Class LineSeries
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.Charts.Series.XYSeries
-
- com.cloudofficeprint.RenderElements.Charts.Series.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).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObject
getJSON()
java.lang.String
getLineStyle()
java.lang.String
getLineThickness()
java.lang.Boolean
getSmooth()
java.lang.String
getSymbol()
java.lang.String
getSymbolSize()
void
setLineStyle(java.lang.String lineStyle)
void
setLineThickness(java.lang.String lineThickness)
void
setSmooth(java.lang.Boolean smooth)
-void
setSymbol(java.lang.String symbol)
void
setSymbolSize(java.lang.String symbolSize)
-
-
-
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.
-
-