protected void build() throws SVGException
{
super.build();
StyleAttribute sty = new StyleAttribute();
if (getPres(sty.setName("refX")))
{
refX = sty.getFloatValueWithUnits();
}
if (getPres(sty.setName("refY")))
{
refY = sty.getFloatValueWithUnits();
}
if (getPres(sty.setName("markerWidth")))
{
markerWidth = sty.getFloatValueWithUnits();
}
if (getPres(sty.setName("markerHeight")))
{
markerHeight = sty.getFloatValueWithUnits();
}
if (getPres(sty.setName("orient")))
{
if ("auto".equals(sty.getStringValue()))
{
orient = Float.NaN;
} else
{
orient = sty.getFloatValue();
}
}
if (getPres(sty.setName("viewBox")))
{
float[] dim = sty.getFloatList();
viewBox = new Rectangle2D.Float(dim[0], dim[1], dim[2], dim[3]);
}
if (viewBox == null)
{
viewBox = new Rectangle(0, 0, 1, 1);
}
if (getPres(sty.setName("markerUnits")))
{
String markerUnits = sty.getStringValue();
if (markerUnits != null && markerUnits.equals("userSpaceOnUse"))
{
markerUnitsStrokeWidth = false;
}
}