/*
 *  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 Scale extends XyTransform
{
    public Scale(Number x, Number y)
    {
        super(x,y);
    }
    
    public Scale(Number x)
    {
        super(x);
    }

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

@@ -542,133 +542,30 @@
     
-StringBuilder sb = new StringBuilder(%22scale(%22).append(x);%0A        %0A        if(y != null)%0A            sb.append(%22,%22).append(y)
+Number%5B%5D args = %7Bx, y%7D
 ;%0A  
@@ -590,30 +590,30 @@
 urn 
-.append(%22)%22).toString(
+toString(%22scale%22, args
 );%0A 

Update Scale.java