public class ImagesControl<T extends PropCnr> extends Composite implements IImageInfoChanged, IZoomCapable, Runnable
Constructor and Description |
---|
ImagesControl(Composite parent,
int style,
int zoom,
ImageInfo imageInfo,
ILayoutListener layout,
IEditorImage _baseImage)
Creates the image control from a file with zoom 1.
|
Modifier and Type | Method and Description |
---|---|
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Computes the size.
|
void |
onChanged(ImageInfo info)
Called to inform that new data is available in the instance of ImageInfo.
|
void |
paintControl(PaintEvent e)
Paints the canvas foreground.
|
void |
run()
Runnable for timer.
|
void |
setZoom(double zoom)
Sets the zoom level (1-10).
|
void |
widgetDisposed(DisposeEvent e)
Widget is disposed.
|
public ImagesControl(Composite parent, int style, int zoom, ImageInfo imageInfo, ILayoutListener layout, IEditorImage _baseImage)
parent
- Parent composite.style
- The control style SWT.*.imageInfo
- ImageInfo for image, will be disposed.public void onChanged(ImageInfo info)
onChanged
in interface IImageInfoChanged
public void setZoom(double zoom)
setZoom
in interface IZoomCapable
public void widgetDisposed(DisposeEvent e)
public Point computeSize(int wHint, int hHint, boolean changed)
public void paintControl(PaintEvent e)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.