Class Lang
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Lang
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Lang extends Optionable
The language object is global and it can't be set on each chart initiation. Instead, useCharts.setOptions(Options)
to set it before any chart is initiated.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Lang()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LangAccessibility
getAccessibility()
Returns the configure the accessibility strings in the chart.String
getContextButtonTitle()
Returns exporting module menu.String
getDecimalPoint()
Returns the default decimal point used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.String
getDownloadJPEG()
Returns exporting module only.String
getDownloadPDF()
Returns exporting module only.String
getDownloadPNG()
Returns exporting module only.String
getDownloadSVG()
Returns exporting module only.String
getDrillUpText()
Returns the text for the button that appears when drilling down, linking back to the parent series.String
getLoading()
Returns the loading text that appears when the chart is set into the loading state following a call toCharts.showLoading(String)
.List<String>
getMonths()
Returns an array containing the months names.String
getNoData()
Returns the message for no data.List<String>
getNumericSymbols()
Returns Metric prefixes used to shorten high numbers in axis labels.String
getPrintChart()
Returns exporting module only.String
getResetZoom()
Returns the text for the label appearing when a chart is zoomed.String
getResetZoomTitle()
Returns the tooltip title for the label appearing when a chart is zoomed.List<String>
getShortMonths()
Returns a list containing the months names in abbreviated form.String
getThousandsSep()
Returns the default thousands separator used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.List<String>
getWeekdays()
Returns an array containing the weekday names.void
setAccessibility(LangAccessibility accessibility)
Sets the configure the accessibility strings in the chart.void
setContextButtonTitle(String contextButtonTitle)
Sets exporting module menu.void
setDecimalPoint(String decimalPoint)
Sets the default decimal point used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.void
setDownloadJPEG(String downloadJPEG)
Sets exporting module only.void
setDownloadPDF(String downloadPDF)
Sets exporting module only.void
setDownloadPNG(String downloadPNG)
Sets exporting module only.void
setDownloadSVG(String downloadSVG)
Sets exporting module only.void
setDrillUpText(String drillUpText)
Sets the text for the button that appears when drilling down, linking back to the parent series.void
setLoading(String loading)
Sets the loading text that appears when the chart is set into the loading state following a call toCharts.showLoading(String)
.void
setMonths(List<String> months)
Sets an array containing the months names.void
setNoData(String noData)
Sets the message for no data.void
setNumericSymbols(List<String> numericSymbols)
Sets Metric prefixes used to shorten high numbers in axis labels.void
setPrintChart(String printChart)
Sets exporting module only.void
setResetZoom(String resetZoom)
Sets the text for the label appearing when a chart is zoomed.void
setResetZoomTitle(String resetZoomTitle)
Sets the tooltip title for the label appearing when a chart is zoomed.void
setShortMonths(List<String> shortMonths)
Sets a list containing the months names in abbreviated form.void
setThousandsSep(String thousandsSep)
Sets the default thousands separator used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.void
setWeekdays(List<String> weekdays)
Sets an array containing the weekday names.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getAccessibility
public LangAccessibility getAccessibility()
Returns the configure the accessibility strings in the chart. If null, create a new one.- Since:
- 10.2.1.0
-
setAccessibility
public void setAccessibility(LangAccessibility accessibility)
Sets the configure the accessibility strings in the chart.- Since:
- 10.2.1.0
-
setNoData
public void setNoData(String noData)
Sets the message for no data.- Since:
- 1.1.0
-
getNoData
public String getNoData()
Returns the message for no data.Default: "No data to display"
- Since:
- 1.1.0
-
getDrillUpText
public String getDrillUpText()
Returns the text for the button that appears when drilling down, linking back to the parent series. The parent series' name is inserted for {series.name}.Defaults to "
Back to {series.name}
".
-
setDrillUpText
public void setDrillUpText(String drillUpText)
Sets the text for the button that appears when drilling down, linking back to the parent series. The parent series' name is inserted for {series.name}.Defaults to "
Back to {series.name}
".
-
getContextButtonTitle
public String getContextButtonTitle()
Returns exporting module menu. The tooltip title for the context menu holding print and export menu items.Default: "Chart context menu".
-
setContextButtonTitle
public void setContextButtonTitle(String contextButtonTitle)
Sets exporting module menu. The tooltip title for the context menu holding print and export menu items.
-
getDecimalPoint
public String getDecimalPoint()
Returns the default decimal point used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.Default: ".".
-
setDecimalPoint
public void setDecimalPoint(String decimalPoint)
Sets the default decimal point used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments.
-
getDownloadJPEG
public String getDownloadJPEG()
Returns exporting module only. The text for the JPEG download menu item.Default: "Download JPEG image".
-
setDownloadJPEG
public void setDownloadJPEG(String downloadJPEG)
Sets exporting module only. The text for the JPEG download menu item.
-
getDownloadPDF
public String getDownloadPDF()
Returns exporting module only. The text for the PDF download menu item.Default: "Download PDF document".
-
setDownloadPDF
public void setDownloadPDF(String downloadPDF)
Sets exporting module only. The text for the PDF download menu item.
-
getDownloadPNG
public String getDownloadPNG()
Returns exporting module only. The text for the PNG download menu item.Default: "Download PNG image".
-
setDownloadPNG
public void setDownloadPNG(String downloadPNG)
Sets exporting module only. The text for the PNG download menu item.
-
getDownloadSVG
public String getDownloadSVG()
Returns exporting module only. The text for the SVG download menu item.Default: "Download SVG vector image".
-
setDownloadSVG
public void setDownloadSVG(String downloadSVG)
Sets exporting module only. The text for the SVG download menu item.
-
getLoading
public String getLoading()
Returns the loading text that appears when the chart is set into the loading state following a call toCharts.showLoading(String)
.Default: "Loading...".
-
setLoading
public void setLoading(String loading)
Sets the loading text that appears when the chart is set into the loading state following a call toCharts.showLoading(String)
.
-
getMonths
public List<String> getMonths()
Returns an array containing the months names. Corresponds to the%B
format inCharts.setDateFormat(String, Number, boolean)
.Default: [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December"].
-
setMonths
public void setMonths(List<String> months)
Sets an array containing the months names. Corresponds to the%B
format inCharts.setDateFormat(String, Number, boolean)
.
-
getNumericSymbols
public List<String> getNumericSymbols()
Returns Metric prefixes used to shorten high numbers in axis labels. Replacing any of the positions withnull
causes the full number to be written. SettingsetNumericSymbols(List)
tonull
disables shortening altogether.Default: "[ "k" , "M" , "G" , "T" , "P" , "E"]".
-
setNumericSymbols
public void setNumericSymbols(List<String> numericSymbols)
Sets Metric prefixes used to shorten high numbers in axis labels. Replacing any of the positions withnull
causes the full number to be written. SettingsetNumericSymbols(List)
tonull
disables shortening altogether.
-
getPrintChart
public String getPrintChart()
Returns exporting module only. The text for the menu item to print the chart.Default: "Print chart".
-
setPrintChart
public void setPrintChart(String printChart)
Sets exporting module only. The text for the menu item to print the chart.
-
getResetZoom
public String getResetZoom()
Returns the text for the label appearing when a chart is zoomed.Default: "Reset zoom".
-
setResetZoom
public void setResetZoom(String resetZoom)
Sets the text for the label appearing when a chart is zoomed.
-
getResetZoomTitle
public String getResetZoomTitle()
Returns the tooltip title for the label appearing when a chart is zoomed.Default: "Reset zoom level 1:1".
-
setResetZoomTitle
public void setResetZoomTitle(String resetZoomTitle)
Sets the tooltip title for the label appearing when a chart is zoomed.
-
getShortMonths
public List<String> getShortMonths()
Returns a list containing the months names in abbreviated form. Corresponds to the%b
format inCharts.setDateFormat(String, Number, boolean)
.Default: "[ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , " Sep" , "Oct" , "Nov" , "Dec"]".
-
setShortMonths
public void setShortMonths(List<String> shortMonths)
Sets a list containing the months names in abbreviated form. Corresponds to the%b
format inCharts.setDateFormat(String, Number, boolean)
.
-
getThousandsSep
public String getThousandsSep()
Returns the default thousands separator used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments. Since Highcharts 4.1 it defaults to a single space character, which is compatible with ISO and works across Anglo-American and continental European languages.Default: " ".
-
setThousandsSep
public void setThousandsSep(String thousandsSep)
Sets the default thousands separator used in theCharts.setNumberFormat(Number, Number, String, String)
method unless otherwise specified in the function arguments. Since Highcharts 4.1 it defaults to a single space character, which is compatible with ISO and works across Anglo-American and continental European languages. Defaults to" "
.
-
getWeekdays
public List<String> getWeekdays()
Returns an array containing the weekday names.Default: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday* ", "Saturday"].
-
-