1 16 package org.apache.cocoon.util; 17 18 22 final public class ImageProperties { 23 final public int width; 24 final public int height; 25 final public char[] comment; 26 final public String type; 27 28 public ImageProperties(int width, int height, char[] comment, String type) { 29 this.width = width; 30 this.height = height; 31 this.comment = comment; 32 this.type = type; 33 } 34 35 public String toString() { 36 StringBuffer sb = new StringBuffer (); 37 sb.append(type).append(" ").append(width).append("x").append(height); 38 if (comment != null) { 39 sb.append(" (").append(comment).append(")"); 40 } 41 return (sb.toString()); 42 } 43 } 44 | Popular Tags |