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); }
this.stroke.setStrokeCap(Cap.fromString(value)); } else if (STROKE_LINEJOIN.equals(name)) { this.stroke.setStrokeJoin(Join.fromString(value)); } else if (STROKE_WIDTH.equals(name)) { this.strokeWidth = XmlUtils.parseNonNegativeFloat(name, value) * displayModel.getScaleFactor();
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); }
this.stroke.setStrokeCap(Cap.fromString(value)); } else if (STROKE_LINEJOIN.equals(name)) { this.stroke.setStrokeJoin(Join.fromString(value)); } else if (STROKE_WIDTH.equals(name)) { this.strokeWidth = XmlUtils.parseNonNegativeFloat(name, value) * displayModel.getScaleFactor();