Selaa lähdekoodia

Added Rectangle.toString()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9949 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
PSp..om 13 vuotta sitten
vanhempi
commit
b9274a3ed2
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      engine/src/core/com/jme3/font/Rectangle.java

+ 4 - 0
engine/src/core/com/jme3/font/Rectangle.java

@@ -61,4 +61,8 @@ public class Rectangle implements Cloneable {
             throw new AssertionError();
         }
     }
+    
+    public String toString() {
+        return getClass().getSimpleName() + "[x=" + x + ", y=" + y + ", width=" + width + ", height=" + height + "]"; 
+    }
 }