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 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; }
this.stroke.setStrokeCap(Cap.fromString(value)); } else if (STROKE_LINEJOIN.equals(name)) { this.stroke.setStrokeJoin(Join.fromString(value));
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 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; }
this.stroke.setStrokeCap(Cap.fromString(value)); } else if (STROKE_LINEJOIN.equals(name)) { this.stroke.setStrokeJoin(Join.fromString(value));