public class

DefaultImagePlaceholder

extends Object
implements ImagePlaceholder
java.lang.Object
   ↳ com.atlassian.confluence.macro.DefaultImagePlaceholder

Summary

Public Constructors
DefaultImagePlaceholder(String url, Dimensions dimensions, boolean applyPlaceholderChrome)
Public Methods
boolean applyPlaceholderChrome()
Returns true if the image should have the macro placeholder chrome applied to it.
Dimensions getDimensions()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.macro.ImagePlaceholder

Public Constructors

public DefaultImagePlaceholder (String url, Dimensions dimensions, boolean applyPlaceholderChrome)

Public Methods

public boolean applyPlaceholderChrome ()

Returns true if the image should have the macro placeholder chrome applied to it.

Returns
  • True if placeholder chrome is to be applied.

public Dimensions getDimensions ()

Returns the dimensions that the image is to be rendered as. Returning null will render the image at its default size.

Returns
  • An instance of Dimensions representing the image dimensions.

public String getUrl ()

Returns the url to the image to render, relative to the Confluence base url.

Returns
  • The url relative to the Confluence base url.