Package globus.glmap

Class GLMapLocaleSettings


  • public class GLMapLocaleSettings
    extends GLNativeObject
    `GLMapLocaleSettings` sets language order to all `GLMapView` objects

    Following map languages is included in vector map data:
    native - native language for country or region
    en - English
    de - German
    es - Spanish
    fr - French
    it - Italian
    ja - Japanese
    nl - Dutch
    ru - Russan
    zh - Chinese
    uk - Urkrainian
    be - Belarusian
    Check [Multilingual names in OpenStreetMap](http://wiki.openstreetmap.org/wiki/Multilingual_names) for more information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String[] order
      Order of languages
      int unitSystem
      Unit system
    • Constructor Summary

      Constructors 
      Constructor Description
      GLMapLocaleSettings()
      Default constructor set order of languages to [Locale.getDefault(), "native", GLUnitSystem.International]
      GLMapLocaleSettings​(java.lang.String[] order, int unitSystem)
      Constructor with defined order of languages
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.HashSet<java.lang.String> getValidLanguages()
      List of languages stored inside map data and supported by framework
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • order

        @NonNull
        public final java.lang.String[] order
        Order of languages
      • unitSystem

        public final int unitSystem
        Unit system
    • Constructor Detail

      • GLMapLocaleSettings

        public GLMapLocaleSettings()
        Default constructor set order of languages to [Locale.getDefault(), "native", GLUnitSystem.International]
      • GLMapLocaleSettings

        public GLMapLocaleSettings​(@NonNull
                                   java.lang.String[] order,
                                   int unitSystem)
        Constructor with defined order of languages
        Parameters:
        order - order of languages to check localization
        unitSystem - unit system
    • Method Detail

      • getValidLanguages

        @NonNull
        public static java.util.HashSet<java.lang.String> getValidLanguages()
        List of languages stored inside map data and supported by framework
        Returns:
        Set of valid languages