Class CmsImagePreviewHandler.PreviewImageUpdate
java.lang.Object
org.opencms.ade.galleries.client.preview.CmsImagePreviewHandler.PreviewImageUpdate
- Enclosing class:
CmsImagePreviewHandler
Encapsulates information used to update the preview image's scaling parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionPreviewImageUpdate(String preview, String highResPreview, int width, int height) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToImage(com.google.gwt.user.client.ui.Image image, String src, boolean isSvg, com.google.gwt.user.client.ui.Widget container) Updates the given image with information from this object.
-
Constructor Details
-
PreviewImageUpdate
Creates a new instance.- Parameters:
preview- the normal preview scaling parametershighResPreview- the high resolution scaling parameterswidth- the normal widthheight- the normal height
-
-
Method Details
-
applyToImage
public void applyToImage(com.google.gwt.user.client.ui.Image image, String src, boolean isSvg, com.google.gwt.user.client.ui.Widget container) Updates the given image with information from this object.- Parameters:
image- the image to updatesrc- the image base URLisSvg- true if the image is an SVG
-