Class Thumbnails
java.lang.Object
com.atlassian.confluence.pages.thumbnail.Thumbnails
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
ConstructorsConstructorDescriptionThumbnails(List<Attachment> attachments, int columns, ThumbnailManager thumbnailManager) Construct a Thumbnails object, which contains details of all thumbnailable images in a list of attachments.Thumbnails(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. -
Method Summary
-
Constructor Details
-
Thumbnails
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 attachmentscolumns- number of columns per row of thumbnails displayed.
-
Thumbnails
public Thumbnails(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 attachmentspathHelper- 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 Details
-
getSize
public int getSize() -
getThumbnails
-
getRows
-
getMaxHeight
public int getMaxHeight() -
getMaxWidth
public int getMaxWidth() -
getMaxImageHeight
public int getMaxImageHeight() -
getMaxImageWidth
public int getMaxImageWidth() -
getColumns
public int getColumns()
-