final float dashPhase = stroke.getDashPhase();
final int endCap = stroke.getEndCap();
final int lineJoin = stroke.getLineJoin();
final float lineWidth = stroke.getLineWidth();
final float miterLimit = stroke.getMiterLimit();
final AttributeList attribs = new AttributeList();
if (mPlexAttribute != null) {
attribs.setAttribute(mPlexAttribute, mPlexValue);
}
attribs.setAttribute("type", "basic");
attribs.setAttribute("endCap", String.valueOf(endCap));
attribs.setAttribute("lineJoin", String.valueOf(lineJoin));
attribs.setAttribute("lineWidth", String.valueOf(lineWidth));
attribs.setAttribute("miterLimit", String.valueOf(miterLimit));
if (dashArray != null) {
attribs.setAttribute("dashArray", toString(dashArray));
attribs.setAttribute("dashPhase", String.valueOf(dashPhase));
}
writer.writeTag(tagName, attribs, true);
}