1
|
1 package de.mpg.mpiwg.itgroup.digilib.digiImage;
|
|
2
|
|
3 import org.eclipse.swt.widgets.Composite;
|
|
4 import org.eclipse.swt.widgets.Label;
|
|
5
|
9
|
6 import de.mpg.mpiwg.itgroup.digilib.manipulator.extensions.ZoomAreaRectangleListener;
|
1
|
7
|
|
8
|
9
|
9 /**
|
|
10 * Interface for an general scalable image object.
|
|
11 * @author dwinter
|
|
12 *
|
|
13 */
|
1
|
14 public interface IDigiImage {
|
|
15
|
9
|
16 /**
|
|
17 * Gets the current set of parameters.
|
|
18 * @return
|
|
19 */
|
1
|
20 public DigiImageParameter getParameter();
|
9
|
21
|
|
22 /** Set the parameter, no other action, image is only recreated by calling @see {@link #redraw()}.
|
|
23 * @param dp
|
|
24 */
|
1
|
25 public void setParameter(DigiImageParameter dp);
|
9
|
26
|
|
27 /**
|
|
28 * Draws the image defined by the parameter set.
|
|
29 *
|
|
30 */
|
1
|
31 public void redraw();
|
|
32
|
9
|
33 /**
|
|
34 *
|
|
35 * @return the label @object which contains the image
|
|
36 */
|
1
|
37 public Label getLabel();
|
|
38
|
9
|
39 /**
|
|
40 * Sets a new label object, should normally not be externally called. Label should be set by @see {@link #redraw()}.
|
|
41 * @param label
|
|
42 */
|
1
|
43 public void setLabel(Label label);
|
|
44
|
|
45
|
9
|
46 /**
|
|
47 * Get the listener to a rectangle object used for marking a part of the image for zooming.
|
|
48 * @return
|
|
49 */
|
|
50 public ZoomAreaRectangleListener getRectangleListener();
|
|
51 /**
|
|
52 * et the listener to a rectangle object used for marking a part of the image for zooming.
|
|
53 * @param rectangleListener
|
|
54 */
|
|
55 public void setRectangleListener(ZoomAreaRectangleListener rectangleListener);
|
1
|
56
|
9
|
57 /**
|
|
58 * @return Parent of the composite object of the label.
|
|
59 */
|
1
|
60 public Composite getParent();
|
|
61
|
|
62 }
|