Package com.atlassian.confluence.macro
Class DefaultImagePlaceholder
- java.lang.Object
-
- com.atlassian.confluence.macro.DefaultImagePlaceholder
-
- All Implemented Interfaces:
ImagePlaceholder
public class DefaultImagePlaceholder extends Object implements ImagePlaceholder
- Author:
- Ryan Thomas
-
-
Constructor Summary
Constructors Constructor Description DefaultImagePlaceholder(String url, boolean applyPlaceholderChrome, ImageDimensions imageDimensions)DefaultImagePlaceholder(String url, Dimensions dimensions, boolean applyPlaceholderChrome)Deprecated.since 5.3.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanapplyPlaceholderChrome()Returns true if the image should have the macro placeholder chrome applied to it.DimensionsgetDimensions()Deprecated.since 7.2.ImageDimensionsgetImageDimensions()Returns the dimensions that the image is to be rendered as.StringgetUrl()Returns the url to the image to render, relative to the Confluence base url.
-
-
-
Constructor Detail
-
DefaultImagePlaceholder
@Deprecated public DefaultImagePlaceholder(String url, Dimensions dimensions, boolean applyPlaceholderChrome)
Deprecated.since 5.3. UseDefaultImagePlaceholder(String, boolean, ImageDimensions)instead.
-
DefaultImagePlaceholder
public DefaultImagePlaceholder(String url, boolean applyPlaceholderChrome, ImageDimensions imageDimensions)
- Since:
- 5.3
-
-
Method Detail
-
getUrl
public String 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 public Dimensions 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
public ImageDimensions 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.
-
-