summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/javax
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-10-26 05:04:57 +0200
committerSven Gothel <[email protected]>2010-10-26 05:04:57 +0200
commit7cc10bde2ebe22ad9c9f85e9d1de40f46a35b14d (patch)
treee19827b2ea74842c3f4381a5a1dd903a6ed634b0 /src/nativewindow/classes/javax
parenta34d04ad4d9a46a30772b3984baf692a59e8b608 (diff)
RectangleReadOnly clonable; Make strings more readable
Diffstat (limited to 'src/nativewindow/classes/javax')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java2
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/Point.java2
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java2
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/RectangleReadOnly.java18
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java2
5 files changed, 13 insertions, 13 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java b/src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java
index f7826c6eb..86e1b8d28 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/Dimension.java
@@ -74,7 +74,7 @@ public class Dimension implements Cloneable, DimensionReadOnly {
}
public String toString() {
- return new String("Dimension["+width+" x "+height+"]");
+ return new String(width+" x "+height);
}
public boolean equals(Object obj) {
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/Point.java b/src/nativewindow/classes/javax/media/nativewindow/util/Point.java
index 1ece49ffb..76f1d69c5 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/Point.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/Point.java
@@ -74,7 +74,7 @@ public class Point implements Cloneable, PointReadOnly {
}
public String toString() {
- return new String("Point[" + x + " / " + y + "]");
+ return new String( x + " / " + y );
}
public void setX(int x) { this.x = x; }
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java b/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
index 015a78a32..f4808929b 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
@@ -81,7 +81,7 @@ public class Rectangle implements Cloneable, RectangleReadOnly {
}
public String toString() {
- return new String("Rect["+x+"/"+y+" "+width+"x"+height+"]");
+ return new String("[ "+x+" / "+y+" "+width+" x "+height+" ]");
}
}
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/RectangleReadOnly.java b/src/nativewindow/classes/javax/media/nativewindow/util/RectangleReadOnly.java
index 9ffa07373..81a5a9f86 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/RectangleReadOnly.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/RectangleReadOnly.java
@@ -29,7 +29,15 @@
package javax.media.nativewindow.util;
/** Immutable Rectangle interface */
-public interface RectangleReadOnly {
+public interface RectangleReadOnly extends Cloneable {
+
+ int getHeight();
+
+ int getWidth();
+
+ int getX();
+
+ int getY();
/**
* Checks whether two rect objects are equal. Two instances
@@ -41,14 +49,6 @@ public interface RectangleReadOnly {
*/
boolean equals(Object obj);
- int getHeight();
-
- int getWidth();
-
- int getX();
-
- int getY();
-
int hashCode();
}
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java b/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java
index 2973f5a86..294fa2d13 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java
@@ -64,7 +64,7 @@ public class SurfaceSize implements Cloneable {
}
public final String toString() {
- return new String("SurfaceSize["+resolution+" x "+bitsPerPixel+" bpp]");
+ return new String("[ "+resolution+" x "+bitsPerPixel+" bpp ]");
}
/**