jview
Interface ViewportTransferring
- All Known Implementing Classes:
- AbstractTransferProxy, TransferX
public interface ViewportTransferring
An interface defining capabilities of a component to listen to a viewport
selection of an other component and adopting its self viewport depending
on the choice made. The simplest thing is a one-to-one transfer, i.e.
simply selecting the self-viewport to the outsider's one.
More complicated scenarios are possible, if one zooms a
UserCoordinates canvas like a data canvas, transforms the zoomed
area into physical coordinates and deduces what this implies for the
current zoom.
|
Method Summary |
boolean |
transferViewport(Object from,
Rectangle2D view)
If a viewport should be transfered from one object to an other,
the object on which the selection occured calls this method on any
registered ViewportTransferring instances. |
transferViewport
boolean transferViewport(Object from,
Rectangle2D view)
- If a viewport should be transfered from one object to an other,
the object on which the selection occured calls this method on any
registered ViewportTransferring instances. The originating object is
included to allow the receiver to do non-trivial viewport adjustments.
In most cases, the origin will be a
UserCoordinates object.
The viewport is in natural coordinates, just as selected.