Bunyan-style

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6650 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2011-06-02 23:02:38 +00:00
parent 5b1e29432b
commit bdcc8cf6fd
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
package com.threerings.geom;
import com.samskivert.util.Logger;
/**
* A very simple representation of the geometric concept, because sometimes we can't use awt.
*/
@@ -25,6 +27,6 @@ public class Point
@Override
public String toString ()
{
return getClass().getName() + "[x=" + x + ",y=" + y + "]";
return Logger.format(getClass().getName(), "x", x, "y", y);
}
}
@@ -1,5 +1,7 @@
package com.threerings.geom;
import com.samskivert.util.Logger;
/**
* A very simple representation of the geometric shape, because sometimes we can't use awt.
*/
@@ -79,7 +81,6 @@ public class Rectangle
@Override
public String toString ()
{
return getClass().getName() +
"[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + "]";
return Logger.format(getClass().getName(), "x", x, "y", y, "w", width, "h", height);
}
}