1
package org.helioviewer.viewmodel.view;
3
import org.helioviewer.viewmodel.changeevent.ChangeEvent;
4
import org.helioviewer.viewmodel.region.Region;
7
* View to manage the region of the image currently shown.
10
* This view manages the region, which is currently displayed. By accessing this
11
* view, changing the region is also possible.
14
* Note, that the region is not necessarily specified in pixels. Instead, the
15
* region should be given in an unit, that allows calculating the location and
16
* size of different images in relation to each other correctly. Since a pixel
17
* might be referring to an physical area, whose real physical size might be
18
* different from image to image, solar images usually specify their region in
22
* Also note, that it is expected to have at least one RegionView in every path
23
* of the view chain. To take care of this requirement, implement the
24
* {@link ImageInfoView} as recommended.
27
* For further informations about regions, also see
28
* {@link org.helioviewer.viewmodel.region}
30
* @author Ludwig Schmidt
33
public interface RegionView extends View {
36
* Sets the current region.
41
* ChangeEvent to append all changes following
42
* @return True, if the region has changed, false otherwise
45
public boolean setRegion(Region r, ChangeEvent event);
48
* Returns the current region.
50
* @return Current region
53
public Region getRegion();