com.atlassian.confluence.pages.thumbnail
Class Thumbnails

java.lang.Object
  extended by com.atlassian.confluence.pages.thumbnail.Thumbnails

public class Thumbnails
extends java.lang.Object

Retrieves or constructs ThumbnailInfo objects for a list of image Attachments, and determines the maximum height and width of the thumbnails and images so that the rendered columns and rows can be sized appropriately.


Constructor Summary
Thumbnails(java.util.List<Attachment> attachments, ImagePathHelper pathHelper, int columns, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager)
          Deprecated. use Thumbnails(List, ImagePathHelper, int, ThumbnailManager)
Thumbnails(java.util.List<Attachment> attachments, ImagePathHelper pathHelper, int columns, ThumbnailManager thumbnailManager)
          Construct a Thumbnails object, which contains details of all thumbnailable images in a list of attachments.
Thumbnails(java.util.List<Attachment> attachments, int columns, ThumbnailManager thumbnailManager)
          Construct a Thumbnails object, which contains details of all thumbnailable images in a list of attachments.
Thumbnails(java.util.List<Attachment> attachments, java.lang.String attachmentsRoot, int columns, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager)
          Deprecated. use Thumbnails(List, ImagePathHelper, int, ThumbnailManager)
 
Method Summary
 int getColumns()
           
 int getMaxHeight()
           
 int getMaxImageHeight()
           
 int getMaxImageWidth()
           
 int getMaxWidth()
           
 java.util.List<java.util.List<java.lang.Object>> getRows()
           
 int getSize()
           
 java.util.List<ThumbnailInfo> getThumbnails()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thumbnails

public Thumbnails(java.util.List<Attachment> attachments,
                  java.lang.String attachmentsRoot,
                  int columns,
                  AttachmentManager attachmentManager,
                  ThumbnailManager thumbnailManager)
Deprecated. use Thumbnails(List, ImagePathHelper, int, ThumbnailManager)

Parameters:
attachmentManager - no longer required. Pass null.

Thumbnails

public Thumbnails(java.util.List<Attachment> attachments,
                  ImagePathHelper pathHelper,
                  int columns,
                  AttachmentManager attachmentManager,
                  ThumbnailManager thumbnailManager)
Deprecated. use Thumbnails(List, ImagePathHelper, int, ThumbnailManager)

Parameters:
attachmentManager - no longer required. Pass null.

Thumbnails

public Thumbnails(java.util.List<Attachment> attachments,
                  int columns,
                  ThumbnailManager thumbnailManager)
Construct a Thumbnails object, which contains details of all thumbnailable images in a list of attachments. Thumbnail URLs will be rooted at the configured context path.

Parameters:
attachments - list of attachments
columns - number of columns per row of thumbnails displayed.

Thumbnails

public Thumbnails(java.util.List<Attachment> attachments,
                  ImagePathHelper pathHelper,
                  int columns,
                  ThumbnailManager thumbnailManager)
Construct a Thumbnails object, which contains details of all thumbnailable images in a list of attachments.

Parameters:
attachments - list of attachments
pathHelper - determines the remote path to the attachments, if null is passed then the attachment URLs will be rooted at the configured context path.
columns - number of columns per row of thumbnails displayed.
Method Detail

getSize

public int getSize()

getThumbnails

public java.util.List<ThumbnailInfo> getThumbnails()

getRows

public java.util.List<java.util.List<java.lang.Object>> getRows()

getMaxHeight

public int getMaxHeight()

getMaxWidth

public int getMaxWidth()

getMaxImageHeight

public int getMaxImageHeight()

getMaxImageWidth

public int getMaxImageWidth()

getColumns

public int getColumns()


Copyright © 2003-2010 Atlassian. All Rights Reserved.