/*
 *  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.transform;

/**
 * @author Joe Hendrix
 */
public class Rotate extends XyTransform
{
    private Number degrees;

    public Rotate(Number degrees, Number x, Number y)
    {
        super(x,y);
        this.degrees = degrees;
    }
    
    public Rotate(Number degrees)
    {
        this.degrees = degrees;
    }

    public String toString()
    {
        StringBuilder sb = new StringBuilder("rotate(").append(degrees);
        
        if(x != null && y != null)
            sb.append(",").append(x).append(",").append(y);
        
        return .append(")").toString();
    }
}

@@ -595,16 +595,30 @@
 %0A    %7D%0A%0A
+    @Override%0A
     publ
@@ -656,175 +656,39 @@
     
-StringBuilder sb = new StringBuilder(%22rotate(%22).append(degrees);%0A        %0A        if(x != null && y != null)%0A            sb.append(%22,%22).append(x).append(%22,%22).append(y)
+Number%5B%5D args = %7Bdegrees, x, y%7D
 ;%0A  
@@ -713,30 +713,29 @@
 urn 
-.append(%22)%22).toString(
+toString(rotate, args
 );%0A 

Update Rotate.java