/*
 *  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 Translate(Number x)
    {
        this.x = x;
    }

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

@@ -349,19 +349,18 @@
 ate 
-implement
+extend
 s 
+Xy
 Tran
@@ -371,37 +371,8 @@
 m%0A%7B%0A
-    Number x;%0A    Number y;%0A%0A
     
@@ -426,38 +426,18 @@
     
-this.x = x;%0A        this.y = y
+super(x,y)
 ;%0A  
@@ -494,18 +494,16 @@
     
-this.x = x
+super(x)
 ;%0A  

Update Translate.java