public class Thumbnails extends Object
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 and Description |
|---|
Thumbnails(List<Attachment> attachments,
ImagePathHelper pathHelper,
int columns,
AttachmentManager attachmentManager,
ThumbnailManager thumbnailManager)
Deprecated.
|
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.
|
Thumbnails(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,
String attachmentsRoot,
int columns,
AttachmentManager attachmentManager,
ThumbnailManager thumbnailManager)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumns() |
int |
getMaxHeight() |
int |
getMaxImageHeight() |
int |
getMaxImageWidth() |
int |
getMaxWidth() |
List<List<Object>> |
getRows() |
int |
getSize() |
List<ThumbnailInfo> |
getThumbnails() |
@Deprecated public Thumbnails(List<Attachment> attachments, String attachmentsRoot, int columns, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager)
Thumbnails(List, ImagePathHelper, int, ThumbnailManager)attachmentManager - no longer required. Pass null.@Deprecated public Thumbnails(List<Attachment> attachments, ImagePathHelper pathHelper, int columns, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager)
Thumbnails(List, ImagePathHelper, int, ThumbnailManager)attachmentManager - no longer required. Pass null.public Thumbnails(List<Attachment> attachments, int columns, ThumbnailManager thumbnailManager)
attachments - list of attachmentscolumns - number of columns per row of thumbnails displayed.public Thumbnails(List<Attachment> attachments, ImagePathHelper pathHelper, int columns, ThumbnailManager thumbnailManager)
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.public int getSize()
public List<ThumbnailInfo> getThumbnails()
public int getMaxHeight()
public int getMaxWidth()
public int getMaxImageHeight()
public int getMaxImageWidth()
public int getColumns()
Copyright © 2003–2020 Atlassian. All rights reserved.