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 Details

    • DefaultImagePlaceholder

      public DefaultImagePlaceholder(String url, boolean applyPlaceholderChrome, ImageDimensions imageDimensions)
      Since:
      5.3
  • Method Details

    • 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 interface ImagePlaceholder
      Returns:
      The url relative to the Confluence base url.
    • getDimensions

      @Deprecated public Dimensions getDimensions()
      Deprecated.
      since 7.2. Use getImageDimensions() 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 interface ImagePlaceholder
      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 interface ImagePlaceholder
      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 interface ImagePlaceholder
      Returns:
      True if placeholder chrome is to be applied.