private void printLineStyles(ArrayList linestyles, boolean alpha)
{
Iterator it = linestyles.iterator();
while (it.hasNext())
{
LineStyle lineStyle = (LineStyle)it.next();
indent();
out.print("<linestyle ");
String color = alpha ? printRGBA(lineStyle.color) : printRGB(lineStyle.color);
out.print("color='" + color + "' ");
out.print("width='" + lineStyle.width + "' ");
if (lineStyle.flags != 0)
out.print("flags='" + lineStyle.flags + "' ");
if (lineStyle.hasMiterJoint())
{
out.print("miterLimit='" + lineStyle.miterLimit + "' ");
}
if (lineStyle.hasFillStyle())
{
out.println(">");
indent();
ArrayList<FillStyle> fillStyles = new ArrayList<FillStyle>(1);
fillStyles.add(lineStyle.fillStyle);