Method Summary |
|
public void | addListener(ViewportListener l) |
public Envelope | fullExtent() |
public Envelope | getEnvelopeInModelCoordinates() |
public Java2DConverter | getJava2DConverter() |
public AffineTransform | getModelToViewTransform() |
public Point2D | getOriginInModelCoordinates() |
public LayerViewPanel | getPanel() |
public double | getScale() |
public ZoomHistory | getZoomHistory() |
public void | initialize(double newScale, Point2D newViewOriginAsPerceivedByModel) Set both values but repaint once. |
public static AffineTransform | modelToViewTransform(double scale, Point2D viewOriginAsPerceivedByModel, double panelHeight) |
public void | removeListener(ViewportListener l) |
public void | setJava2DConverter(Java2DConverter converter) |
public Coordinate | toModelCoordinate(Point2D viewPoint) |
public Envelope | toModelEnvelope(double x1, double x2, double y1, double y2) |
public Point2D | toModelPoint(Point2D viewPoint) |
public Point2D | toViewPoint(Point2D modelPoint) |
public Point2D | toViewPoint(Coordinate modelCoordinate) |
public Collection | toViewPoints(Collection modelCoordinates) |
public Rectangle2D | toViewRectangle(Envelope envelope) |
public void | update() |
public void | zoom(Point2D centreOfNewViewAsPerceivedByOldView, double widthOfNewViewAsPerceivedByOldView, double heightOfNewViewAsPerceivedByOldView) Of widthOfNewViewAsPerceivedByOldView and heightOfNewViewAsPerceivedByOldView,
this method will choose the one producing the least zoom. |
public void | zoom(Envelope modelEnvelope) |
public void | zoomToFullExtent() |
public void | zoomToViewPoint(Point2D centreOfNewViewAsPerceivedByOldView, double zoomFactor) |