Package com.day.cq.dam.commons.thumbnail
Class ThumbnailConfigImpl
- java.lang.Object
-
- com.day.cq.dam.commons.thumbnail.ThumbnailConfigImpl
-
- All Implemented Interfaces:
ThumbnailConfig
public class ThumbnailConfigImpl extends java.lang.Object implements ThumbnailConfig
- Since:
- CQ 5.4.0
-
-
Field Summary
-
Fields inherited from interface com.day.cq.dam.api.thumbnail.ThumbnailConfig
PN_DOCENTER, PN_HEIGHT, PN_WIDTH
-
-
Constructor Summary
Constructors Constructor Description ThumbnailConfigImpl(int width, int height, boolean doCenter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCenter()
Returns whether this thumbnail is rendered centered.int
getHeight()
Retrieves the height in pixels for a thumbnail.int
getWidth()
Retrieves the width in pixels for a thumbnail.
-
-
-
Method Detail
-
getWidth
public int getWidth()
Description copied from interface:ThumbnailConfig
Retrieves the width in pixels for a thumbnail.- Specified by:
getWidth
in interfaceThumbnailConfig
- 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 interfaceThumbnailConfig
- 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 interfaceThumbnailConfig
- Returns:
true
if the thumbnail is rendered centered.
-
-