Interface ZCameraListener

All Superinterfaces:
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.

Ben Bederson
See Also:
ZCameraAdapter, ZCameraEvent

Method Summary
 void viewChanged(ZCameraEvent e)
          Invoked when the camera's view transform changes.

Method Detail


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.