Changeset 9393 for extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/transverse/ImagesManagement.java
- Timestamp:
- Feb 27, 2011, 1:38:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/transverse/ImagesManagement.java
r8829 r9393 9 9 10 10 import fr.mael.jiwigo.om.Image; 11 import fr.mael.jiwigo.transverse.util. Outil;11 import fr.mael.jiwigo.transverse.util.Tools; 12 12 13 13 /** … … 36 36 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 37 37 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 38 39 39 * @author mael 40 40 * Management of the real sized pictures … … 85 85 /** 86 86 * boolean that defines if the application is sending files 87 * 87 * 88 88 */ 89 89 private boolean sendingFiles = false; … … 138 138 139 139 /** 140 * 140 * 141 141 * @param image the current image 142 142 */ … … 158 158 */ 159 159 public BufferedImage getCurrentBufferedImage() { 160 if (imageCache.get(currentImage.getIdentifi ant()) == null) {160 if (imageCache.get(currentImage.getIdentifier()) == null) { 161 161 try { 162 162 BufferedImage img = ImageIO.read(new URL(currentImage.getUrl())); 163 imageCache.put(currentImage.getIdentifi ant(), img);163 imageCache.put(currentImage.getIdentifier(), img); 164 164 } catch (Exception e) { 165 LOG.error( Outil.getStackTrace(e));165 LOG.error(Tools.getStackTrace(e)); 166 166 } 167 167 } 168 return imageCache.get(currentImage.getIdentifi ant());168 return imageCache.get(currentImage.getIdentifier()); 169 169 } 170 170 … … 175 175 */ 176 176 public BufferedImage getMiniatureBufferedImage(Image image) { 177 if (thumbnailsCache.get(image.getIdentifi ant()) == null) {177 if (thumbnailsCache.get(image.getIdentifier()) == null) { 178 178 try { 179 BufferedImage img = ImageIO.read(new URL(image.get Miniature()));180 thumbnailsCache.put(image.getIdentifi ant(), img);179 BufferedImage img = ImageIO.read(new URL(image.getThumbnailUrl())); 180 thumbnailsCache.put(image.getIdentifier(), img); 181 181 } catch (Exception e) { 182 LOG.error( Outil.getStackTrace(e));182 LOG.error(Tools.getStackTrace(e)); 183 183 } 184 184 } 185 185 186 return thumbnailsCache.get(image.getIdentifi ant());186 return thumbnailsCache.get(image.getIdentifier()); 187 187 } 188 188
Note: See TracChangeset
for help on using the changeset viewer.