Package com.day.cq.dam.api.smartcrop
Interface SmartCrop
-
- All Known Subinterfaces:
SmartSwatch
@ProviderType public interface SmartCrop
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSmartCrop.CropTypeType of crop - banner or swatch.static interfaceSmartCrop.NormalizedCropRectinterface for rectangle representing the normalized crop boundary.static classSmartCrop.SourceGeneration source for crop - dynamicmedia or assetcompute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SmartCrop.CropTypegetCropType()the type of crop - banner or swatchintgetHeight()get the absolute pixel heightjava.lang.StringgetName()get the name of the cropSmartCrop.NormalizedCropRectgetNormalizedCropRect()Get a rectangle representing the crop boundary.SmartCrop.SourcegetSource()get the source of crop - assetcompute or dynamic mediaintgetWidth()get the absolute pixel width
-
-
-
Method Detail
-
getWidth
int getWidth()
get the absolute pixel width- Returns:
- the pixel width of crop
-
getHeight
int getHeight()
get the absolute pixel height- Returns:
- the pixel height of crop
-
getNormalizedCropRect
SmartCrop.NormalizedCropRect getNormalizedCropRect()
Get a rectangle representing the crop boundary. Contains relative coordinates for the top left corner and relative width & height- Returns:
SmartCrop.NormalizedCropRect
-
getSource
SmartCrop.Source getSource()
get the source of crop - assetcompute or dynamic media- Returns:
SmartCrop.Source
-
getCropType
SmartCrop.CropType getCropType()
the type of crop - banner or swatch- Returns:
SmartCrop.CropType
-
getName
java.lang.String getName()
get the name of the crop- Returns:
- the name of the crop
-
-