/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.svg.component.shape;

import javax.faces.context.ResponseWriter;

import java.io.IOException;

/**
 * @author Joe Hendrix
 */
public abstract class PolyShape extends SvgComponent
{
    List<Number> points = new ArrayList<>();

    protected RoundShape(String name)
    {
        super(name);
    }
    
    public void setPoints(List<Number> points)
    {
        this.points = points;
    }
    
    public void addPoint(Number point)
    {
        points.add(point);
    }

    private void processPoints()
    {
      StringBuilder sb = new StringBuilder();
      
      
    }
}

@@ -461,30 +461,29 @@
 %0A%7B%0A    List%3C
-Number
+Point
 %3E points = n
@@ -608,22 +608,21 @@
 ts(List%3C
-Number
+Point
 %3E points
@@ -659,16 +659,41 @@
 points;%0A
+        processPoints();%0A
     %7D%0A  
@@ -724,14 +724,13 @@
 int(
-Number
+Point
  poi
@@ -766,16 +766,41 @@
 point);%0A
+        processPoints();%0A
     %7D%0A%0A 
@@ -892,21 +892,510 @@
      %0A      
+for(Point point : points)%0A      %7B%0A          sb.append(point).append(%22 %22);%0A      %7D%0A      %0A      sb.setLength(sb.length() - 1);%0A      %0A      put(%22points%22,sb.toString());%0A    %7D%0A    %0A    public class Point%0A    %7B%0A        private Number x;%0A        private Number y;%0A        %0A        public Point(Number x, Number y)%0A        %7B%0A            this.x = x;%0A            this.y = y;%0A        %7D%0A        %0A        @Override%0A        public String toString()%0A        %7B%0A            return x + %22,%22 + y;%0A        %7D
 %0A    %7D%0A%7D%0A

Update PolyShape.java