Enum VtmThemes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VtmThemes>, org.oscim.theme.ThemeFile

    public enum VtmThemes
    extends java.lang.Enum<VtmThemes>
    implements org.oscim.theme.ThemeFile
    Enumeration of all internal rendering themes.
    • Enum Constant Detail

      • DEFAULT

        public static final VtmThemes DEFAULT
      • MAPZEN

        public static final VtmThemes MAPZEN
      • NEWTRON

        public static final VtmThemes NEWTRON
      • OPENMAPTILES

        public static final VtmThemes OPENMAPTILES
      • OSMAGRAY

        public static final VtmThemes OSMAGRAY
      • OSMARENDER

        public static final VtmThemes OSMARENDER
      • TRONRENDER

        public static final VtmThemes TRONRENDER
    • Method Detail

      • values

        public static VtmThemes[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (VtmThemes c : VtmThemes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VtmThemes valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMenuCallback

        public org.oscim.theme.XmlRenderThemeMenuCallback getMenuCallback()
        Specified by:
        getMenuCallback in interface org.oscim.theme.ThemeFile
      • getRelativePathPrefix

        public java.lang.String getRelativePathPrefix()
        Specified by:
        getRelativePathPrefix in interface org.oscim.theme.ThemeFile
      • getRenderThemeAsStream

        public java.io.InputStream getRenderThemeAsStream()
                                                   throws org.oscim.theme.IRenderTheme.ThemeException
        Specified by:
        getRenderThemeAsStream in interface org.oscim.theme.ThemeFile
        Throws:
        org.oscim.theme.IRenderTheme.ThemeException
      • isMapsforgeTheme

        public boolean isMapsforgeTheme()
        Specified by:
        isMapsforgeTheme in interface org.oscim.theme.ThemeFile
      • setMenuCallback

        public void setMenuCallback​(org.oscim.theme.XmlRenderThemeMenuCallback menuCallback)
        Specified by:
        setMenuCallback in interface org.oscim.theme.ThemeFile