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 Object


Constructor Summary
ImageHelper()
           
 
Method Summary
 DataSource convertToDataSource(RenderedImage image, String name)
           
 BufferedImage cropAndResizeImage(BufferedImage image, int height, int minWidth, int maxWidth)
           
 BufferedImage getCached(String dsName, int height, int minWidth, int maxWidth)
           
 BufferedImage getCachedOrResize(DataSource ds, int height, int minWidth, int maxWidth)
           
 BufferedImage resizeAndCache(BufferedImage image, 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 BufferedImage getCached(String dsName,
                               int height,
                               int minWidth,
                               int maxWidth)

getCachedOrResize

public BufferedImage getCachedOrResize(DataSource ds,
                                       int height,
                                       int minWidth,
                                       int maxWidth)
                                throws IOException
Throws:
IOException

resizeAndCache

public BufferedImage resizeAndCache(BufferedImage image,
                                    String dsName,
                                    int height,
                                    int minWidth,
                                    int maxWidth)
                             throws IOException
Throws:
IOException

cropAndResizeImage

public BufferedImage cropAndResizeImage(BufferedImage image,
                                        int height,
                                        int minWidth,
                                        int maxWidth)
                                 throws IOException
Throws:
IOException

convertToDataSource

public DataSource convertToDataSource(RenderedImage image,
                                      String name)
                               throws IOException
Throws:
IOException


Copyright © 2003-2012 Atlassian. All Rights Reserved.