Class COPChartDateOptions
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.COPChartDateOptions
-
public class COPChartDateOptions extends java.lang.Object
Date options for an COPChart (different from ChartDateOptions for the other Charts).
-
-
Constructor Summary
Constructors Constructor Description COPChartDateOptions(java.lang.String format, java.lang.String unit, java.lang.Integer step)
This object represents the date options for a chart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormat()
com.google.gson.JsonObject
getJSON()
java.lang.Integer
getStep()
java.lang.String
getUnit()
void
setFormat(java.lang.String format)
void
setStep(java.lang.Integer step)
void
setUnit(java.lang.String unit)
-
-
-
Constructor Detail
-
COPChartDateOptions
public COPChartDateOptions(java.lang.String format, java.lang.String unit, java.lang.Integer step)
This object represents the date options for a chart.- Parameters:
format
- Date format e.g. : unix.unit
- The unit to be used for spacing the axis values e.g. : months.step
- How many units should be used for spacing the axis values (automatic if undefined). This option is not supported in LibreOffice.
-
-
Method Detail
-
getFormat
public java.lang.String getFormat()
- Returns:
- Date format e.g. : unix.
-
setFormat
public void setFormat(java.lang.String format)
- Parameters:
format
- Date format e.g. : unix.
-
getUnit
public java.lang.String getUnit()
- Returns:
- The unit to be used for spacing the axis values e.g. : months.
-
setUnit
public void setUnit(java.lang.String unit)
- Parameters:
unit
- The unit to be used for spacing the axis values e.g. : months.
-
getStep
public java.lang.Integer getStep()
- Returns:
- How many units should be used for spacing the axis values (automatic if undefined). This option is not supported in LibreOffice.
-
setStep
public void setStep(java.lang.Integer step)
- Parameters:
step
- How many units should be used for spacing the axis values (automatic if undefined). This option is not supported in LibreOffice.
-
getJSON
public com.google.gson.JsonObject getJSON()
- Returns:
- JSONObject with the tags for this element for the Cloud Office Print server.
-
-