changeset 258:7a89d105f526

nicer ImageSize.toString()
author robcast
date Mon, 11 Oct 2004 21:17:37 +0200
parents 85a0abfa1b8c
children beed92ee6022
files servlet/src/digilib/image/ImageSize.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/servlet/src/digilib/image/ImageSize.java	Mon Oct 11 21:17:37 2004 +0200
+++ b/servlet/src/digilib/image/ImageSize.java	Mon Oct 11 21:17:37 2004 +0200
@@ -209,4 +209,13 @@
 	public double getAspect() {
 		return (height > 0) ? ((double) width / (double) height) : 0;
 	}
+	
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	public String toString() {
+		String s = "[" + width + "x" + height + "]";
+		// TODO Auto-generated method stub
+		return s;
+	}
 }