Package com.iizix.prop.ui
Interface IUIImage2Listener
public interface IUIImage2Listener
Listener for changes in the UIImage2 property class, e.g. when a user uploads an image, orientation changes, zoom, crop points, etc.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
onImageChanged
(UIImage2 image, IImageTarget imageTarget) Change of image caused by the user selecting a new image (theimageTarget
isnull
), some programmatic call not directly caused by the user, but as a result of a user change at some earlier point in time, or that the VirtualSpace value was changed.void
onImageModified
(UIImage2 image, ImageOrientation orientation, double zoom, GRect rect) Invoked when the image has been modified.void
onImageSelection
(UIImage2 image, String name, ImageType type, byte[] data, int width, int height, ImageOrientation orientation, double zoom, GRect rect, boolean isCircle) Invoked when the user has selected an image.
Method Details
onImageSelection
void onImageSelection(UIImage2 image, String name, ImageType type, byte[] data, int width, int height, ImageOrientation orientation, double zoom, GRect rect, boolean isCircle) Invoked when the user has selected an image.- Parameters:
image
- The image selection and upload property.name
- The original file name on the client side.type
- The image type.data
- The original file data, uncropped.width
- The original image in pixels.height
- The original image height in pixels.orientation
- The orientation.zoom
- The zoom factor.rect
- The cropping rectangle.isCircle
- Flag indicating the image cropping is a circle iftrue
, rectangle or square iffalse
.
onImageModified
Invoked when the image has been modified.- Parameters:
image
- The image selection and upload property.orientation
- The orientation.zoom
- The zoom.rect
- The crop rectangle.
onImageChanged
Change of image caused by the user selecting a new image (theimageTarget
isnull
), some programmatic call not directly caused by the user, but as a result of a user change at some earlier point in time, or that the VirtualSpace value was changed.This method is not invoked when a user chooses a image, only e.g. programmatic changes when the
UIImage2
property is updated with a URL from an image that has been stored, typically accessible from the web.- Parameters:
image
- The image selection and upload property.imageTarget
- The image target,null
if a user has selected an image and the server application has not yet processed the image selected to save e.g. as a profile image.