com.googlecode.wickedcharts.highcharts.options
Class LanguageOptions

java.lang.Object
  extended by com.googlecode.wickedcharts.highcharts.options.LanguageOptions
All Implemented Interfaces:
Serializable

public class LanguageOptions
extends Object
implements Serializable

Defines the configuration of the "lang" option. Use forLocale(Locale) to create a preconfigured LanguageOptions object for a specific locale.

Author:
Tom Hombergs (tom.hombergs@gmail.com)
See Also:
http://api.highcharts.com/highcharts#lang, Serialized Form

Constructor Summary
LanguageOptions()
           
 
Method Summary
static LanguageOptions forLocale(Locale locale)
          Returns the LanguageOptions for the specified locale.
 String getDecimalPoint()
           
 String getDownloadJPEG()
           
 String getDownloadPDF()
           
 String getDownloadPNG()
           
 String getDownloadSVG()
           
 String getExportButtonTitle()
           
 String getLoading()
           
 List<String> getMonths()
           
 String getPrintButtonTitle()
           
 String getResetZoom()
           
 String getResetZoomTitle()
           
 List<String> getShortMonths()
           
 String getThousandsSep()
           
 List<String> getWeekdays()
           
 LanguageOptions setDecimalPoint(String decimalPoint)
           
 LanguageOptions setDownloadJPEG(String downloadJPEG)
           
 LanguageOptions setDownloadPDF(String downloadPDF)
           
 LanguageOptions setDownloadPNG(String downloadPNG)
           
 LanguageOptions setDownloadSVG(String downloadSVG)
           
 LanguageOptions setExportButtonTitle(String exportButtonTitle)
           
 LanguageOptions setLoading(String loading)
           
 LanguageOptions setMonths(List<String> months)
           
 LanguageOptions setPrintButtonTitle(String printButtonTitle)
           
 LanguageOptions setResetZoom(String resetZoom)
           
 LanguageOptions setResetZoomTitle(String resetZoomTitle)
           
 LanguageOptions setShortMonths(List<String> shortMonths)
           
 LanguageOptions setThousandsSep(String thousandsSep)
           
 LanguageOptions setWeekdays(List<String> weekdays)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageOptions

public LanguageOptions()
Method Detail

forLocale

public static LanguageOptions forLocale(Locale locale)
Returns the LanguageOptions for the specified locale. If the locale is not supported, an empty LanguageOptions object is returned. Highcharts will then automatically fall back to english.

To look up the locale-specific strings, the resource bundle com/googlecode/wicketcharts/highcharts/options/LanguageOptions .properties is used. To add your own language, simply copy one of the existing resource bundles, modify it and then add it in the classpath in the same package.

Parameters:
locale - the locale for which to create the Language options.
Returns:
the language options in the specified locale.

getDecimalPoint

public String getDecimalPoint()

getDownloadJPEG

public String getDownloadJPEG()

getDownloadPDF

public String getDownloadPDF()

getDownloadPNG

public String getDownloadPNG()

getDownloadSVG

public String getDownloadSVG()

getExportButtonTitle

public String getExportButtonTitle()

getLoading

public String getLoading()

getMonths

public List<String> getMonths()

getPrintButtonTitle

public String getPrintButtonTitle()

getResetZoom

public String getResetZoom()

getResetZoomTitle

public String getResetZoomTitle()

getShortMonths

public List<String> getShortMonths()

getThousandsSep

public String getThousandsSep()

getWeekdays

public List<String> getWeekdays()

setDecimalPoint

public LanguageOptions setDecimalPoint(String decimalPoint)

setDownloadJPEG

public LanguageOptions setDownloadJPEG(String downloadJPEG)

setDownloadPDF

public LanguageOptions setDownloadPDF(String downloadPDF)

setDownloadPNG

public LanguageOptions setDownloadPNG(String downloadPNG)

setDownloadSVG

public LanguageOptions setDownloadSVG(String downloadSVG)

setExportButtonTitle

public LanguageOptions setExportButtonTitle(String exportButtonTitle)

setLoading

public LanguageOptions setLoading(String loading)

setMonths

public LanguageOptions setMonths(List<String> months)

setPrintButtonTitle

public LanguageOptions setPrintButtonTitle(String printButtonTitle)

setResetZoom

public LanguageOptions setResetZoom(String resetZoom)

setResetZoomTitle

public LanguageOptions setResetZoomTitle(String resetZoomTitle)

setShortMonths

public LanguageOptions setShortMonths(List<String> shortMonths)

setThousandsSep

public LanguageOptions setThousandsSep(String thousandsSep)

setWeekdays

public LanguageOptions setWeekdays(List<String> weekdays)


Copyright © 2013. All Rights Reserved.