com.atlassian.confluence.plugins.dailysummary.content.popular
Class ImageHelper

java.lang.Object
  extended by com.atlassian.confluence.plugins.dailysummary.content.popular.ImageHelper

public class ImageHelper
extends java.lang.Object


Constructor Summary
ImageHelper()
           
 
Method Summary
 ImageDataSource convertToDataSource(java.awt.image.RenderedImage image, java.lang.String name)
           
 java.awt.image.BufferedImage cropAndResizeImage(java.awt.image.BufferedImage image, int height, int minWidth, int maxWidth)
           
 java.awt.image.BufferedImage getCached(java.lang.String dsName, int height, int minWidth, int maxWidth)
           
 java.awt.image.BufferedImage getCachedOrResize(javax.activation.DataSource ds, int height, int minWidth, int maxWidth)
           
 java.awt.image.BufferedImage resizeAndCache(java.awt.image.BufferedImage image, java.lang.String dsName, int height, int minWidth, int maxWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHelper

public ImageHelper()
Method Detail

getCached

public java.awt.image.BufferedImage getCached(java.lang.String dsName,
                                              int height,
                                              int minWidth,
                                              int maxWidth)

getCachedOrResize

public java.awt.image.BufferedImage getCachedOrResize(javax.activation.DataSource ds,
                                                      int height,
                                                      int minWidth,
                                                      int maxWidth)
                                               throws java.io.IOException
Throws:
java.io.IOException

resizeAndCache

public java.awt.image.BufferedImage resizeAndCache(java.awt.image.BufferedImage image,
                                                   java.lang.String dsName,
                                                   int height,
                                                   int minWidth,
                                                   int maxWidth)
                                            throws java.io.IOException
Throws:
java.io.IOException

cropAndResizeImage

public java.awt.image.BufferedImage cropAndResizeImage(java.awt.image.BufferedImage image,
                                                       int height,
                                                       int minWidth,
                                                       int maxWidth)
                                                throws java.io.IOException
Throws:
java.io.IOException

convertToDataSource

public ImageDataSource convertToDataSource(java.awt.image.RenderedImage image,
                                           java.lang.String name)
                                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.