public RenderThemeBuilder(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser) throws XmlPullParserException { this.displayModel = displayModel; this.baseStrokeWidth = 1f; this.baseTextSize = 1f; this.mapBackground = graphicFactory.createColor(Color.WHITE); extractValues(graphicFactory, elementName, pullParser); }
private static int getColor(GraphicFactory graphicFactory, String colorString, int alpha, int rgbStartIndex, ThemeCallback themeCallback) { int red = Integer.parseInt(colorString.substring(rgbStartIndex, rgbStartIndex + 2), 16); int green = Integer.parseInt(colorString.substring(rgbStartIndex + 2, rgbStartIndex + 4), 16); int blue = Integer.parseInt(colorString.substring(rgbStartIndex + 4, rgbStartIndex + 6), 16); int color = graphicFactory.createColor(alpha, red, green, blue); if (themeCallback != null) { color = themeCallback.getColor(color); } return color; }
private static void verifyEqualColor(Color color, String colorString) { Assert.assertEquals(GRAPHIC_FACTORY.createColor(color), XmlUtils.getColor(GRAPHIC_FACTORY, colorString)); }
private static int getColor(GraphicFactory graphicFactory, String colorString, int alpha, int rgbStartIndex, ThemeCallback themeCallback) { int red = Integer.parseInt(colorString.substring(rgbStartIndex, rgbStartIndex + 2), 16); int green = Integer.parseInt(colorString.substring(rgbStartIndex + 2, rgbStartIndex + 4), 16); int blue = Integer.parseInt(colorString.substring(rgbStartIndex + 4, rgbStartIndex + 6), 16); int color = graphicFactory.createColor(alpha, red, green, blue); if (themeCallback != null) { color = themeCallback.getColor(color); } return color; }
public RenderThemeBuilder(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser) throws XmlPullParserException { this.displayModel = displayModel; this.baseStrokeWidth = 1f; this.baseTextSize = 1f; this.mapBackground = graphicFactory.createColor(Color.WHITE); extractValues(graphicFactory, elementName, pullParser); }