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 boolean
applyPlaceholderChrome()
Returns true if the image should have the macro placeholder chrome applied to it.Dimensions
getDimensions()
Deprecated.since 7.2.ImageDimensions
getImageDimensions()
Returns the dimensions that the image is to be rendered as.String
getUrl()
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:ImagePlaceholder
Returns the url to the image to render, relative to the Confluence base url.- Specified by:
getUrl
in 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:ImagePlaceholder
Returns the dimensions that the image is to be rendered as. Returning null will render the image at its default size.- Specified by:
getDimensions
in interfaceImagePlaceholder
- Returns:
- An instance of
Dimensions
representing the image dimensions.
-
getImageDimensions
public ImageDimensions getImageDimensions()
Description copied from interface:ImagePlaceholder
Returns the dimensions that the image is to be rendered as. Returning null will render the image at its default size.- Specified by:
getImageDimensions
in interfaceImagePlaceholder
- Returns:
- An instance of
ImageDimensions
representing the image dimensions.
-
applyPlaceholderChrome
public boolean applyPlaceholderChrome()
Description copied from interface:ImagePlaceholder
Returns true if the image should have the macro placeholder chrome applied to it.- Specified by:
applyPlaceholderChrome
in interfaceImagePlaceholder
- Returns:
- True if placeholder chrome is to be applied.
-
-