You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/03/06 16:20:41 UTC
svn commit: r1453380 -
/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java
Author: smartini
Date: Wed Mar 6 15:20:41 2013
New Revision: 1453380
URL: http://svn.apache.org/r1453380
Log:
add toString() for simpler debugging
Modified:
pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java
Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java?rev=1453380&r1=1453379&r2=1453380&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/media/Image.java Wed Mar 6 15:20:41 2013
@@ -140,6 +140,11 @@ public abstract class Image implements V
return imageListeners;
}
+ @Override
+ public String toString() {
+ return getClass().getName() + " [" + getWidth() + "," + getHeight() + "]";
+ }
+
public static Image load(URL location) throws TaskExecutionException {
LoadTask loadTask = new LoadTask(location);
return loadTask.execute();