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