edu.umd.cs.jazz.event
Interface ZCameraListener
- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
-
ZCameraAdapter, ZDefaultScrollDirector
- public interface ZCameraListener
- extends java.util.EventListener
ZCameraListener is an interface to support notification when changes occur to a ZCamera. Based on Swing's ComponentListener.
The class that is interested in processing a camera event either implements this interface (and all the methods it contains) or extends the abstract ZCameraAdapter
class (overriding only the methods of interest). The listener object created from that class is then registered with a ZCamera using the ZCamera's addCameraListener
method. When the ZCamera's state changes, the relevant method in the listener object is invoked, and the ZCameraEvent
is passed to it.
ZCamera events are provided for notification purposes ONLY; Jazz will automatically handle ZCamera state changes internally so that everything works properly regardless of whether a program registers a ZCameraListener
or not.
- Author:
- Ben Bederson
- See Also:
-
ZCameraAdapter
, ZCameraEvent
viewChanged
public void viewChanged(ZCameraEvent e)
-
Invoked when the camera's view transform changes.
-
-
Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.