public Circle(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser, int level) throws XmlPullParserException { super(graphicFactory, displayModel); this.level = level; this.fill = graphicFactory.createPaint(); this.fill.setColor(Color.TRANSPARENT); this.fill.setStyle(Style.FILL); this.fills = new HashMap<>(); this.stroke = graphicFactory.createPaint(); this.stroke.setColor(Color.TRANSPARENT); this.stroke.setStyle(Style.STROKE); this.strokes = new HashMap<>(); this.renderRadiusScaled = new HashMap<>(); extractValues(graphicFactory, displayModel, elementName, pullParser); if (!this.scaleRadius) { this.renderRadius = this.radius; this.stroke.setStrokeWidth(this.strokeWidth); } }
public PathText(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser) throws XmlPullParserException { super(graphicFactory, displayModel); this.fill = graphicFactory.createPaint(); this.fill.setColor(Color.BLACK); this.fill.setStyle(Style.FILL); this.fill.setTextAlign(Align.CENTER); this.fills = new HashMap<>(); this.rotate = true; this.repeat = true; this.stroke = graphicFactory.createPaint(); this.stroke.setColor(Color.BLACK); this.stroke.setStyle(Style.STROKE); this.stroke.setTextAlign(Align.CENTER); this.strokes = new HashMap<>(); this.dyScaled = new HashMap<>(); this.display = Display.IFSPACE; extractValues(graphicFactory, displayModel, elementName, pullParser); }
public Line(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser, int level, String relativePathPrefix) throws IOException, XmlPullParserException { super(graphicFactory, displayModel); this.level = level; this.relativePathPrefix = relativePathPrefix; this.stroke = graphicFactory.createPaint(); this.stroke.setColor(Color.BLACK); this.stroke.setStyle(Style.STROKE); this.stroke.setStrokeCap(Cap.ROUND); this.stroke.setStrokeJoin(Join.ROUND); this.strokes = new HashMap<>(); this.dyScaled = new HashMap<>(); extractValues(graphicFactory, displayModel, elementName, pullParser); }
public Area(GraphicFactory graphicFactory, DisplayModel displayModel, String elementName, XmlPullParser pullParser, int level, String relativePathPrefix) throws IOException, XmlPullParserException { super(graphicFactory, displayModel); this.level = level; this.relativePathPrefix = relativePathPrefix; this.fill = graphicFactory.createPaint(); this.fill.setColor(Color.TRANSPARENT); this.fill.setStyle(Style.FILL); this.fill.setStrokeCap(Cap.ROUND); this.stroke = graphicFactory.createPaint(); this.stroke.setColor(Color.TRANSPARENT); this.stroke.setStyle(Style.STROKE); this.stroke.setStrokeCap(Cap.ROUND); this.strokes = new HashMap<>(); extractValues(elementName, pullParser); }
private static Paint createLineBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setStrokeWidth(4 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private static Paint createPaintFront(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.RED); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private static Paint createLineFront(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.BLUE); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private Paint createScaleBarPaint(Color color, float strokeWidth, Style style) { Paint paint = this.graphicFactory.createPaint(); paint.setColor(color); paint.setStrokeWidth(strokeWidth * this.scale); paint.setStyle(style); paint.setStrokeCap(Cap.SQUARE); return paint; }
private static Paint createPaintBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setStrokeWidth(4 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private Paint createTextPaint(Color color, float strokeWidth, Style style) { Paint paint = this.graphicFactory.createPaint(); paint.setColor(color); paint.setStrokeWidth(strokeWidth * this.scale); paint.setStyle(style); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(12 * this.scale); return paint; }
private static Paint createTextBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(12 * displayModel.getScaleFactor()); paint.setStrokeWidth(4 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private static Paint createPaintBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(25 * displayModel.getScaleFactor()); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private static Paint createPaintBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(12 * displayModel.getScaleFactor()); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
static Paint createPaint(int color, int strokeWidth, Style style) { Paint paint = AndroidGraphicFactory.INSTANCE.createPaint(); paint.setColor(color); paint.setStrokeWidth(strokeWidth); paint.setStyle(style); return paint; }
private static Paint getPaint(int color, int strokeWidth, Style style) { Paint paint = AndroidGraphicFactory.INSTANCE.createPaint(); paint.setColor(color); paint.setStrokeWidth(strokeWidth); paint.setStyle(style); return paint; }
private static Paint createPaintFront(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.RED); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private Paint createScaleBarPaint(Color color, float strokeWidth, Style style) { Paint paint = this.graphicFactory.createPaint(); paint.setColor(color); paint.setStrokeWidth(strokeWidth * this.scale); paint.setStyle(style); paint.setStrokeCap(Cap.SQUARE); return paint; }
private static Paint createTextBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(12 * displayModel.getScaleFactor()); paint.setStrokeWidth(4 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }
private static Paint createPaintBack(GraphicFactory graphicFactory, DisplayModel displayModel) { Paint paint = graphicFactory.createPaint(); paint.setColor(Color.WHITE); paint.setTypeface(FontFamily.DEFAULT, FontStyle.BOLD); paint.setTextSize(12 * displayModel.getScaleFactor()); paint.setStrokeWidth(2 * displayModel.getScaleFactor()); paint.setStyle(Style.STROKE); return paint; }