Class CmsFocalPointController
java.lang.Object
org.opencms.ade.galleries.client.preview.CmsFocalPointController
Handles manipulation of the focal point in the gallery dialog.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanGlobal static flag to enable / disable focal point modification. - 
Constructor Summary
ConstructorsConstructorDescriptionCmsFocalPointController(Supplier<CmsCroppingParamBean> croppingProvider, Supplier<org.opencms.ade.galleries.shared.CmsImageInfoBean> infoProvider, Runnable nextAction) Creates a new instance. - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the user clicks on the focal point widget.voidreset()Saves the focal point to a property on the image.voidupdateImage(com.google.gwt.user.client.ui.FlowPanel container, com.google.gwt.user.client.ui.Image previewImage) Updates the image. 
- 
Field Details
- 
ENABLED
Global static flag to enable / disable focal point modification.- See Also:
 
 
 - 
 - 
Constructor Details
- 
CmsFocalPointController
public CmsFocalPointController(Supplier<CmsCroppingParamBean> croppingProvider, Supplier<org.opencms.ade.galleries.shared.CmsImageInfoBean> infoProvider, Runnable nextAction) Creates a new instance.- Parameters:
 croppingProvider- the source of the cropping informationinfoProvider- the source of the image infonextAction- the action to execute when the focal point is changed
 
 - 
 - 
Method Details
- 
onStartDrag
Called when the user clicks on the focal point widget.This starts drag and drop.
 - 
reset
Saves the focal point to a property on the image. - 
updateImage
public void updateImage(com.google.gwt.user.client.ui.FlowPanel container, com.google.gwt.user.client.ui.Image previewImage) Updates the image.- Parameters:
 container- the parent widget for the imagepreviewImage- the image
 
 -