edu.umd.cs.jazz.event
Class ZSelectionScaleHandler

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZSelectionScaleHandler
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, java.io.Serializable, ZEventHandler

public class ZSelectionScaleHandler
extends java.lang.Object
implements ZEventHandler, java.awt.event.KeyListener, java.io.Serializable

ZSelectionScaleHandler is a selection handler for use with a ZSelectionManager. ZSelectionScaleHandler allows the user to scale the current selection using the PgUp / PgDn keys.

Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.

Author:
Antony Courtney, Yale University, Lance Good, University of Maryland, Benjamin Bederson, University of Maryland
See Also:
ZSelectionManager, ZCompositeSelectionHandler, Serialized Form

Constructor Summary
ZSelectionScaleHandler(ZCamera camera, ZCanvas canvas)
          Construct a new ZSelectionScaleHandler.
ZSelectionScaleHandler(ZCanvas canvas)
          Construct a new ZSelectionScaleHandler.
 
Method Summary
 boolean isActive()
          Determines if this event handler is active.
 void keyPressed(java.awt.event.KeyEvent e)
          Key press event handler
 void keyReleased(java.awt.event.KeyEvent e)
          Key release event handler
 void keyTyped(java.awt.event.KeyEvent e)
          Key typed event handler
 void setActive(boolean active)
          Specifies whether this event handler is active
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZSelectionScaleHandler

public ZSelectionScaleHandler(ZCanvas canvas)
Construct a new ZSelectionScaleHandler. This event handler operates only on the canvas' camera.
Parameters:
node - The node this event handler attaches to
canvas - The canvas on which this event handler is active

ZSelectionScaleHandler

public ZSelectionScaleHandler(ZCamera camera,
                              ZCanvas canvas)
Construct a new ZSelectionScaleHandler. This event handler only operates on the specified camera.
Parameters:
node - The node this event handler attaches to
camera - The camera on which this event handler operates
canvas - The canvas on which this event handler is active
Method Detail

setActive

public void setActive(boolean active)
Specifies whether this event handler is active
Specified by:
setActive in interface ZEventHandler
Parameters:
active - True to make this event handler active

isActive

public boolean isActive()
Determines if this event handler is active.
Specified by:
isActive in interface ZEventHandler
Returns:
True if active

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Key press event handler
Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - The event.

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Key release event handler
Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e - The event.

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Key typed event handler
Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
e - The event.


Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.