| java.lang.Object | |
| ↳ | com.atlassian.confluence.pages.thumbnail.ThumbnailInfo |
Responsible for setting the height and width of thumbnails appropriately and generating the HTML for rendering them in a page.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | THUMBNAIL_DEFAULT_WIDTH | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
since 3.1 use
ThumbnailInfo(ImageDetails, Dimensions, String), or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment, String)
| |||||||||||
Creates a thumbnail info for the given image details and maximum dimensions.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the MIME type of the thumbnail if it is an intelligible image, or
null otherwise. | |||||||||||
Get the height of the attachment before thumbnailing
| |||||||||||
Get the width of the attachment before thumbnailing
| |||||||||||
Get some HTML that will cause a thumbnail to be rendered inline, with a popup-link to
the full-sized image.
| |||||||||||
This method generates an a tag with the 'confluence-thumbnail-link' class.
| |||||||||||
Get the height of the thumbnail image.
| |||||||||||
Get the URL path for downloading the thumbnail, relative to the application's context-root
| |||||||||||
Get the width of the thumbnail image.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This constructor is deprecated.
since 3.1 use ThumbnailInfo(ImageDetails, Dimensions, String), or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment, String)
Creates a thumbnail for an attachment.
| attachmentData | is no longer used or required, so can be null |
|---|
Creates a thumbnail info for the given image details and maximum dimensions. The attachmentPath is used to generate a thumbnail URL.
| IllegalArgumentException | if imageDetails or its attachment is null
|
|---|
Returns the MIME type of the thumbnail if it is an intelligible image, or null otherwise.
Get the height of the attachment before thumbnailing
Get the width of the attachment before thumbnailing
Get some HTML that will cause a thumbnail to be rendered inline, with a popup-link to the full-sized image. You can optionally supply some additional parameters to include in the img tag. This method generates an a tag with the 'confluence-thumbnail-link' class. The 'image-effects.js' file will attach an onclick function during the page initialisation.
| imageParameters | a string of parameters suitable for inserting into an HTML img tag. Ignored if null. |
|---|
This method generates an a tag with the 'confluence-thumbnail-link' class. The 'image-effects.js' file will attach an onclick function during the page initialisation.
Get the height of the thumbnail image. This should never be greater than the configured maximum thumbnail height.
Get the URL path for downloading the thumbnail, relative to the application's context-root
Get the width of the thumbnail image. This should never be greater than the configured maximum thumbnail width.