move ThemeException to IRenderTheme

This commit is contained in:
Hannes Janetzek
2013-10-06 20:42:22 +02:00
parent 18d0bfc3c5
commit 9189cbd51c
2 changed files with 9 additions and 8 deletions

View File

@@ -156,4 +156,12 @@ public interface IRenderTheme {
void renderWayText(Text text);
}
public static class ThemeException extends IllegalArgumentException {
public ThemeException(String string) {
super(string);
}
private static final long serialVersionUID = 1L;
}
}

View File

@@ -34,6 +34,7 @@ import org.oscim.backend.canvas.Paint.FontStyle;
import org.oscim.renderer.atlas.TextureAtlas;
import org.oscim.renderer.atlas.TextureAtlas.Rect;
import org.oscim.renderer.elements.TextureItem;
import org.oscim.theme.IRenderTheme.ThemeException;
import org.oscim.theme.renderinstruction.Area;
import org.oscim.theme.renderinstruction.AreaLevel;
import org.oscim.theme.renderinstruction.Circle;
@@ -61,14 +62,6 @@ public class RenderThemeHandler extends DefaultHandler {
RENDER_THEME, RENDERING_INSTRUCTION, RULE, STYLE, ATLAS;
}
static class ThemeException extends IllegalArgumentException {
public ThemeException(String string) {
super(string);
}
private static final long serialVersionUID = 1L;
}
//private static final String ELEMENT_NAME_RENDER_THEME = "rendertheme";
private static final String ELEMENT_NAME_MATCH = "m";
private static final String UNEXPECTED_ELEMENT = "unexpected element: ";