Mercurial > hg > digilib
changeset 254:8dfbf0f29443
nicer ImageSize.toString()
author | robcast |
---|---|
date | Mon, 11 Oct 2004 21:17:37 +0200 |
parents | fd77250e0268 |
children | f5c3d40c5af2 |
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; + } }