Class ThumbnailConfigImpl

java.lang.Object
com.day.cq.dam.commons.thumbnail.ThumbnailConfigImpl
All Implemented Interfaces:
ThumbnailConfig

public class ThumbnailConfigImpl extends Object implements ThumbnailConfig
Since:
CQ 5.4.0
  • Constructor Details

    • ThumbnailConfigImpl

      public ThumbnailConfigImpl(int width, int height, boolean doCenter)
  • Method Details

    • getWidth

      public int getWidth()
      Description copied from interface: ThumbnailConfig
      Retrieves the width in pixels for a thumbnail.
      Specified by:
      getWidth in interface ThumbnailConfig
      Returns:
      The width of the thumbnail.
    • getHeight

      public int getHeight()
      Description copied from interface: ThumbnailConfig
      Retrieves the height in pixels for a thumbnail.
      Specified by:
      getHeight in interface ThumbnailConfig
      Returns:
      The height of the thumbnail.
    • doCenter

      public boolean doCenter()
      Description copied from interface: ThumbnailConfig
      Returns whether this thumbnail is rendered centered.
      Specified by:
      doCenter in interface ThumbnailConfig
      Returns:
      true if the thumbnail is rendered centered.