Package org.oscim.theme
Class XmlAtlasThemeBuilder
java.lang.Object
org.oscim.theme.XmlThemeBuilder
org.oscim.theme.XmlAtlasThemeBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionXmlAtlasThemeBuilder(ThemeFile theme, org.xmlpull.v1.XmlPullParser pullParser, Map<Object, TextureRegion> regionMap, List<TextureAtlas> atlasList) XmlAtlasThemeBuilder(ThemeFile theme, org.xmlpull.v1.XmlPullParser pullParser, ThemeCallback themeCallback, Map<Object, TextureRegion> regionMap, List<TextureAtlas> atlasList) -
Method Summary
Modifier and TypeMethodDescriptionstatic IRenderThemestatic IRenderThemeread(ThemeFile theme, ThemeCallback themeCallback) Methods inherited from class org.oscim.theme.XmlThemeBuilder
endDocument, endElement, getXmlPullParserFactory, processRenderTheme, setXmlPullParserFactory, startElement
-
Constructor Details
-
XmlAtlasThemeBuilder
public XmlAtlasThemeBuilder(ThemeFile theme, org.xmlpull.v1.XmlPullParser pullParser, Map<Object, TextureRegion> regionMap, List<TextureAtlas> atlasList) -
XmlAtlasThemeBuilder
public XmlAtlasThemeBuilder(ThemeFile theme, org.xmlpull.v1.XmlPullParser pullParser, ThemeCallback themeCallback, Map<Object, TextureRegion> regionMap, List<TextureAtlas> atlasList)
-
-
Method Details
-
read
- Parameters:
theme- an input theme containing valid render theme XML data.- Returns:
- a new RenderTheme which is created by parsing the XML data from the input theme.
- Throws:
IRenderTheme.ThemeException- if an error occurs while parsing the render theme XML.
-
read
public static IRenderTheme read(ThemeFile theme, ThemeCallback themeCallback) throws IRenderTheme.ThemeException - Parameters:
theme- an input theme containing valid render theme XML data.themeCallback- the theme callback.- Returns:
- a new RenderTheme which is created by parsing the XML data from the input theme.
- Throws:
IRenderTheme.ThemeException- if an error occurs while parsing the render theme XML.
-