Class ChartDateOptions
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.Charts.ChartDateOptions
-
public class ChartDateOptions extends java.lang.Object
This class represents date options, only applicable for stock charts.
-
-
Constructor Summary
Constructors Constructor Description ChartDateOptions(java.lang.String format, java.lang.String code, 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
getCode()
java.lang.String
getFormat()
com.google.gson.JsonObject
getJSON()
java.lang.Integer
getStep()
java.lang.String
getUnit()
void
setCode(java.lang.String code)
void
setFormat(java.lang.String format)
void
setStep(java.lang.Integer step)
void
setUnit(java.lang.String unit)
-
-
-
Constructor Detail
-
ChartDateOptions
public ChartDateOptions(java.lang.String format, java.lang.String code, java.lang.String unit, java.lang.Integer step)
This object represents the date options for a chart.- Parameters:
format
- Date format e.g. : unix.code
- Code format of the date. e.g. : mm/yyunit
- 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.
-
getCode
public java.lang.String getCode()
- Returns:
- Code format of the date. e.g. : mm/yy
-
setCode
public void setCode(java.lang.String code)
- Parameters:
code
- Code format of the date. e.g. : mm/yy
-
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.
-
-