Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static IRenderTheme load(ThemeFile theme, ThemeCallback themeCallback) throws org.oscim.theme.IRenderTheme_ThemeException
        public static IRenderTheme load(ThemeFile theme, ThemeCallback themeCallback)
        {
            IRenderTheme t;

            if (theme.MapsforgeTheme)
            {
                t = Parameters.TEXTURE_ATLAS ? XmlMapsforgeAtlasThemeBuilder.read(theme, themeCallback) : XmlMapsforgeThemeBuilder.read(theme, themeCallback);
            }
            else
            {
                t = Parameters.TEXTURE_ATLAS ? XmlAtlasThemeBuilder.read(theme, themeCallback) : XmlThemeBuilder.read(theme, themeCallback);
            }
            if (t != null)
            {
                t.scaleTextSize(CanvasAdapter.Scale * CanvasAdapter.textScale);
            }
            return(t);
        }