Package com.atlassian.confluence.macro
Class DefaultImagePlaceholder
java.lang.Object
com.atlassian.confluence.macro.DefaultImagePlaceholder
- All Implemented Interfaces:
ImagePlaceholder
- Author:
- Ryan Thomas
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultImagePlaceholder(String url, boolean applyPlaceholderChrome, ImageDimensions imageDimensions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the image should have the macro placeholder chrome applied to it.Deprecated.since 7.2.Returns the dimensions that the image is to be rendered as.getUrl()Returns the url to the image to render, relative to the Confluence base url.
-
Constructor Details
-
DefaultImagePlaceholder
public DefaultImagePlaceholder(String url, boolean applyPlaceholderChrome, ImageDimensions imageDimensions) - Since:
- 5.3
-
-
Method Details
-
getUrl
Description copied from interface:ImagePlaceholderReturns the url to the image to render, relative to the Confluence base url.- Specified by:
getUrlin interfaceImagePlaceholder- Returns:
- The url relative to the Confluence base url.
-
getDimensions
Deprecated.since 7.2. UsegetImageDimensions()instead.Description copied from interface:ImagePlaceholderReturns the dimensions that the image is to be rendered as. Returning null will render the image at its default size.- Specified by:
getDimensionsin interfaceImagePlaceholder- Returns:
- An instance of
Dimensionsrepresenting the image dimensions.
-
getImageDimensions
Description copied from interface:ImagePlaceholderReturns the dimensions that the image is to be rendered as. Returning null will render the image at its default size.- Specified by:
getImageDimensionsin interfaceImagePlaceholder- Returns:
- An instance of
ImageDimensionsrepresenting the image dimensions.
-
applyPlaceholderChrome
public boolean applyPlaceholderChrome()Description copied from interface:ImagePlaceholderReturns true if the image should have the macro placeholder chrome applied to it.- Specified by:
applyPlaceholderChromein interfaceImagePlaceholder- Returns:
- True if placeholder chrome is to be applied.
-