Mercurial > hg > digilib-old
comparison servlet/src/digilib/io/DocuFileset.java @ 147:bdd6789d21e0
Fix for sending images that need no scaling.
author | robcast |
---|---|
date | Fri, 22 Aug 2003 15:02:21 +0200 |
parents | 11cfe4c89fdc |
children | 04ad64b2137a |
comparison
equal
deleted
inserted
replaced
146:acfcafefe5b7 | 147:bdd6789d21e0 |
---|---|
112 return null; | 112 return null; |
113 } | 113 } |
114 | 114 |
115 /** Get the next bigger DocuFile than the given size. | 115 /** Get the next bigger DocuFile than the given size. |
116 * | 116 * |
117 * Returns the DocuFile from the set that has a width and height | 117 * Returns the DocuFile from the set that has a width or height |
118 * bigger or equal the given size. | 118 * bigger or equal the given size. |
119 * Returns null if there isn't any bigger image. | 119 * Returns null if there isn't any bigger image. |
120 * Needs DocuInfo instance to checkFile(). | 120 * Needs DocuInfo instance to checkFile(). |
121 * | 121 * |
122 * @param size | 122 * @param size |
128 DocuFile f = (DocuFile) i.previous(); | 128 DocuFile f = (DocuFile) i.previous(); |
129 if (!f.isChecked()) { | 129 if (!f.isChecked()) { |
130 f.check(info); | 130 f.check(info); |
131 } | 131 } |
132 if ((f.getSize().getHeight() >= size.getHeight()) | 132 if ((f.getSize().getHeight() >= size.getHeight()) |
133 && (f.getSize().getWidth() >= size.getWidth())) { | 133 || (f.getSize().getWidth() >= size.getWidth())) { |
134 return f; | 134 return f; |
135 } | 135 } |
136 } | 136 } |
137 return null; | 137 return null; |
138 } | 138 } |