|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.pages.thumbnail.ThumbnailInfo
public class ThumbnailInfo
| Field Summary | |
|---|---|
static int |
THUMBNAIL_DEFAULT_WIDTH
|
| Constructor Summary | |
|---|---|
ThumbnailInfo(Attachment attachment,
InputStream attachmentData,
String attachmentsPath)
This method closes the InputStream given to it. |
|
| Method Summary | |
|---|---|
Attachment |
getAttachment()
|
int |
getOriginalHeight()
Get the height of the attachment before thumbnailing |
int |
getOriginalWidth()
Get the width of the attachment before thumbnailing |
String |
getPopupLink(String imageParameters)
Get some HTML that will cause a thumbnail to be rendered inline, with a popup-link to the full-sized image. |
String |
getPopupLinkPrefix()
|
String |
getPopupLinkSuffix()
|
int |
getThumbnailHeight()
Get the height of the thumbnail image. |
String |
getThumbnailImageHtml(String imageParameters)
|
String |
getThumbnailUrlPath()
Get the URL path for downloading the thumbnail, relative to the application's context-root |
int |
getThumbnailWidth()
Get the width of the thumbnail image. |
static boolean |
systemSupportsThumbnailing()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int THUMBNAIL_DEFAULT_WIDTH
| Constructor Detail |
|---|
public ThumbnailInfo(Attachment attachment,
InputStream attachmentData,
String attachmentsPath)
| Method Detail |
|---|
public static boolean systemSupportsThumbnailing()
public int getOriginalWidth()
public int getOriginalHeight()
public int getThumbnailWidth()
public int getThumbnailHeight()
public String getThumbnailUrlPath()
public String getPopupLink(String imageParameters)
imageParameters - a string of parameters suitable for inserting into an HTML img tag. Ignored if null.
public String getPopupLinkPrefix()
public String getPopupLinkSuffix()
public String getThumbnailImageHtml(String imageParameters)
public Attachment getAttachment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||