/*
 *  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 Translate implements Transform
{
    Number x;
    Number y;

    public Translate(Number x, Number y)
    {
        this.x = x;
        this.y = y;
    }

    public String toString()
    {
        return new StringBuilder("translate(").append(x).append(",").append(y).append(")").toString();
    }
}

@@ -489,16 +489,84 @@
 y;%0A    %7D
+%0A    %0A    public Translate(Number x)%0A    %7B%0A        this.x = x;%0A    %7D
 %0A%0A    pu
@@ -606,14 +606,26 @@
     
-return
+StringBuilder sb =
  new
@@ -666,30 +666,103 @@
 d(x)
-.append(%22,%22).append(y)
+;%0A        %0A        if(y != null)%0A            sb.append(%22,%22).append(y);%0A        %0A        return 
 .app

Update Translate.java