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