1 26 27 package org.nightlabs.editor2d.viewer; 28 29 import java.awt.Rectangle ; 30 import java.awt.geom.Point2D ; 31 import java.beans.PropertyChangeListener ; 32 33 public interface IViewport 34 { 35 public static final String VIEW_CHANGE = "viewChange"; 36 public static final String REAL_CHANGE = "realChange"; 37 39 42 void setRealBounds(Rectangle realBounds); 43 44 48 Rectangle getRealBounds(); 49 50 54 void setViewBounds(Rectangle viewBounds); 55 56 60 Rectangle getViewBounds(); 61 62 66 void setViewLocation(Point2D p); 67 68 73 void setViewLocation(int x, int y); 74 75 79 Point2D getViewLocation(); 80 81 84 int getOffsetX(); 85 86 89 int getOffsetY(); 90 91 97 void addPropertyChangeListener(PropertyChangeListener pcl); 98 99 103 void removePropertyChangeListener(PropertyChangeListener pcl); 104 } 105 | Popular Tags |