Package com.day.cq.dam.api.thumbnail
Interface ThumbnailConfig
- All Known Implementing Classes:
ThumbnailConfigImpl
public interface ThumbnailConfig
This interface specifies the accessors for a thumbnail configuration.
- Since:
- CQ 5.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the configuration property for whether the thumbnail shall be rendered centered or not.static final StringName of the configuration property for the thumbnail's height.static final StringName of the configuration property for the thumbnail's width. -
Method Summary
-
Field Details
-
PN_WIDTH
Name of the configuration property for the thumbnail's width.- See Also:
-
PN_HEIGHT
Name of the configuration property for the thumbnail's height.- See Also:
-
PN_DOCENTER
Name of the configuration property for whether the thumbnail shall be rendered centered or not.- See Also:
-
-
Method Details
-
getWidth
int getWidth()Retrieves the width in pixels for a thumbnail.- Returns:
- The width of the thumbnail.
-
getHeight
int getHeight()Retrieves the height in pixels for a thumbnail.- Returns:
- The height of the thumbnail.
-
doCenter
boolean doCenter()Returns whether this thumbnail is rendered centered.- Returns:
trueif the thumbnail is rendered centered.
-