Class Lang
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Lang
-
- All Implemented Interfaces:
Serializable
public class Lang extends AbstractConfigurationObject
Language object. The language object is global and it can't be set on each chart initiation. Instead, useHighcharts.setOptionsto set it before any chart is initiated.Highcharts.setOptions({ lang: { months: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'], weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'] } });- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Lang()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContextButtonTitle()StringgetDecimalPoint()StringgetDownloadJPEG()StringgetDownloadPDF()StringgetDownloadPNG()StringgetDownloadSVG()StringgetDrillUpText()StringgetInvalidDate()StringgetLoading()String[]getMonths()StringgetNoData()NumbergetNumericSymbolMagnitude()String[]getNumericSymbols()StringgetPrintChart()StringgetRangeSelectorFrom()StringgetRangeSelectorTo()StringgetRangeSelectorZoom()StringgetResetZoom()StringgetResetZoomTitle()String[]getShortMonths()String[]getShortWeekdays()StringgetThousandsSep()String[]getWeekdays()voidsetContextButtonTitle(String contextButtonTitle)Exporting module menu.voidsetDecimalPoint(String decimalPoint)The default decimal point used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.voidsetDownloadJPEG(String downloadJPEG)Exporting module only.voidsetDownloadPDF(String downloadPDF)Exporting module only.voidsetDownloadPNG(String downloadPNG)Exporting module only.voidsetDownloadSVG(String downloadSVG)Exporting module only.voidsetDrillUpText(String drillUpText)The text for the button that appears when drilling down, linking back to the parent series.voidsetInvalidDate(String invalidDate)What to show in a date field for invalid dates.voidsetLoading(String loading)The loading text that appears when the chart is set into the loading state following a call tochart.showLoading.voidsetMonths(String[] months)An array containing the months names.voidsetNoData(String noData)The text to display when the chart contains no data.voidsetNumericSymbolMagnitude(Number numericSymbolMagnitude)The magnitude of numericSymbols replacements.voidsetNumericSymbols(String[] numericSymbols)Metric prefixes used to shorten high numbers in axis labels.voidsetPrintChart(String printChart)Exporting module only.voidsetRangeSelectorFrom(String rangeSelectorFrom)The text for the label for the "from" input box in the range selector.voidsetRangeSelectorTo(String rangeSelectorTo)The text for the label for the "to" input box in the range selector.voidsetRangeSelectorZoom(String rangeSelectorZoom)The text for the label for the range selector buttons.voidsetResetZoom(String resetZoom)The text for the label appearing when a chart is zoomed.voidsetResetZoomTitle(String resetZoomTitle)The tooltip title for the label appearing when a chart is zoomed.voidsetShortMonths(String[] shortMonths)An array containing the months names in abbreviated form.voidsetShortWeekdays(String[] shortWeekdays)Short week days, starting Sunday.voidsetThousandsSep(String thousandsSep)The default thousands separator used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.voidsetWeekdays(String[] weekdays)An array containing the weekday names.
-
-
-
Method Detail
-
getContextButtonTitle
public String getContextButtonTitle()
- See Also:
setContextButtonTitle(String)
-
setContextButtonTitle
public void setContextButtonTitle(String contextButtonTitle)
Exporting module menu. The tooltip title for the context menu holding print and export menu items.Defaults to: Chart context menu
-
getDecimalPoint
public String getDecimalPoint()
- See Also:
setDecimalPoint(String)
-
setDecimalPoint
public void setDecimalPoint(String decimalPoint)
The default decimal point used in theHighcharts.numberFormatmethod unless otherwise specified in the function arguments.Defaults to: .
-
getDownloadJPEG
public String getDownloadJPEG()
- See Also:
setDownloadJPEG(String)
-
setDownloadJPEG
public void setDownloadJPEG(String downloadJPEG)
Exporting module only. The text for the JPEG download menu item.Defaults to: Download JPEG image
-
getDownloadPDF
public String getDownloadPDF()
- See Also:
setDownloadPDF(String)
-
setDownloadPDF
public void setDownloadPDF(String downloadPDF)
Exporting module only. The text for the PDF download menu item.Defaults to: Download PDF document
-
getDownloadPNG
public String getDownloadPNG()
- See Also:
setDownloadPNG(String)
-
setDownloadPNG
public void setDownloadPNG(String downloadPNG)
Exporting module only. The text for the PNG download menu item.Defaults to: Download PNG image
-
getDownloadSVG
public String getDownloadSVG()
- See Also:
setDownloadSVG(String)
-
setDownloadSVG
public void setDownloadSVG(String downloadSVG)
Exporting module only. The text for the SVG download menu item.Defaults to: Download SVG vector image
-
getDrillUpText
public String getDrillUpText()
- See Also:
setDrillUpText(String)
-
setDrillUpText
public void setDrillUpText(String drillUpText)
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}
-
getInvalidDate
public String getInvalidDate()
- See Also:
setInvalidDate(String)
-
setInvalidDate
public void setInvalidDate(String invalidDate)
What to show in a date field for invalid dates. Defaults to an empty string.
-
getLoading
public String getLoading()
- See Also:
setLoading(String)
-
setLoading
public void setLoading(String loading)
The loading text that appears when the chart is set into the loading state following a call tochart.showLoading.Defaults to: Loading...
-
getMonths
public String[] getMonths()
- See Also:
setMonths(String[])
-
setMonths
public void setMonths(String[] months)
An array containing the months names. Corresponds to the%Bformat inHighcharts.dateFormat().Defaults to: [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December"]
-
getNoData
public String getNoData()
- See Also:
setNoData(String)
-
setNoData
public void setNoData(String noData)
The text to display when the chart contains no data. Requires the no-data module, see noData.Defaults to: No data to display
-
getNumericSymbolMagnitude
public Number getNumericSymbolMagnitude()
- See Also:
setNumericSymbolMagnitude(Number)
-
setNumericSymbolMagnitude
public void setNumericSymbolMagnitude(Number numericSymbolMagnitude)
The magnitude of numericSymbols replacements. Use 10000 for Japanese, Korean and various Chinese locales, which use symbols for 10^4, 10^8 and 10^12.Defaults to: 1000
-
getNumericSymbols
public String[] getNumericSymbols()
- See Also:
setNumericSymbols(String[])
-
setNumericSymbols
public void setNumericSymbols(String[] numericSymbols)
Metric prefixes used to shorten high numbers in axis labels. Setting numericSymbols to null sets default values. Setting numericSymbols to an empty array disables shortening - shows initial numbers.Defaults to: [ "k" , "M" , "G" , "T" , "P" , "E"]
-
getPrintChart
public String getPrintChart()
- See Also:
setPrintChart(String)
-
setPrintChart
public void setPrintChart(String printChart)
Exporting module only. The text for the menu item to print the chart.Defaults to: Print chart
-
getResetZoom
public String getResetZoom()
- See Also:
setResetZoom(String)
-
setResetZoom
public void setResetZoom(String resetZoom)
The text for the label appearing when a chart is zoomed.Defaults to: Reset zoom
-
getResetZoomTitle
public String getResetZoomTitle()
- See Also:
setResetZoomTitle(String)
-
setResetZoomTitle
public void setResetZoomTitle(String resetZoomTitle)
The tooltip title for the label appearing when a chart is zoomed.Defaults to: Reset zoom level 1:1
-
getShortMonths
public String[] getShortMonths()
- See Also:
setShortMonths(String[])
-
setShortMonths
public void setShortMonths(String[] shortMonths)
An array containing the months names in abbreviated form. Corresponds to the%bformat inHighcharts.dateFormat().Defaults to: [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec"]
-
getShortWeekdays
public String[] getShortWeekdays()
- See Also:
setShortWeekdays(String[])
-
setShortWeekdays
public void setShortWeekdays(String[] shortWeekdays)
Short week days, starting Sunday. If not specified, Highcharts uses the first three letters of thelang.weekdaysoption.
-
getThousandsSep
public String getThousandsSep()
- See Also:
setThousandsSep(String)
-
setThousandsSep
public void setThousandsSep(String thousandsSep)
The default thousands separator used in the
Highcharts.numberFormatmethod 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.The default is a single space.
Defaults to:
-
getWeekdays
public String[] getWeekdays()
- See Also:
setWeekdays(String[])
-
setWeekdays
public void setWeekdays(String[] weekdays)
An array containing the weekday names.Defaults to: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-
getRangeSelectorFrom
public String getRangeSelectorFrom()
- See Also:
setRangeSelectorFrom(String)
-
setRangeSelectorFrom
public void setRangeSelectorFrom(String rangeSelectorFrom)
The text for the label for the "from" input box in the range selector.Defaults to: From
-
getRangeSelectorTo
public String getRangeSelectorTo()
- See Also:
setRangeSelectorTo(String)
-
setRangeSelectorTo
public void setRangeSelectorTo(String rangeSelectorTo)
The text for the label for the "to" input box in the range selector.Defaults to: To
-
getRangeSelectorZoom
public String getRangeSelectorZoom()
- See Also:
setRangeSelectorZoom(String)
-
setRangeSelectorZoom
public void setRangeSelectorZoom(String rangeSelectorZoom)
The text for the label for the range selector buttons.Defaults to: Zoom
-
-