edu.umd.cs.jazz.event
Class ZLinkEventHandler

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZEventHandler
        |
        +--edu.umd.cs.jazz.event.ZLinkEventHandler

public class ZLinkEventHandler
extends ZEventHandler

ZLinkEventHandler is a simple event handler for interactively creating hyperlinks


Field Summary
protected  ZLinkDecorator currentLink
           
protected  ZNode currentNode
           
protected  boolean definingLink
           
protected  java.util.Vector links
           
protected  ZNode src
           
 
Fields inherited from class edu.umd.cs.jazz.event.ZEventHandler
activated, component, keyAdapter, mouseAdapter, mouseMotionAdapter, surface
 
Constructor Summary
ZLinkEventHandler(java.awt.Component c, ZSurface v)
           
 
Method Summary
 void activate()
           
 ZLinkDecorator createLinkDecorator(ZNode src)
           
 void deactivate()
           
static java.lang.Class findClass(java.lang.String arg)
          Return an instance of a Class that corresponds to the specified class name.
static ZLinkDecorator getLink(ZNode node)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
protected  void updateHilite(java.awt.event.MouseEvent e)
           
 
Methods inherited from class edu.umd.cs.jazz.event.ZEventHandler
getCamera, getComponent, getSurface, keyPressed, keyReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

protected ZNode src

currentNode

protected ZNode currentNode

currentLink

protected ZLinkDecorator currentLink

links

protected java.util.Vector links

definingLink

protected boolean definingLink
Constructor Detail

ZLinkEventHandler

public ZLinkEventHandler(java.awt.Component c,
                         ZSurface v)
Method Detail

findClass

public static java.lang.Class findClass(java.lang.String arg)
Return an instance of a Class that corresponds to the specified class name. This is juat a wrapper around Class.forName, but catches the exception that gets thrown if the name is invalid, and prints an error. This way, applications that are quite sure there will not be an error don't have to catch the exception themselves.

getLink

public static ZLinkDecorator getLink(ZNode node)

activate

public void activate()
Overrides:
activate in class ZEventHandler

deactivate

public void deactivate()
Overrides:
deactivate in class ZEventHandler

updateHilite

protected void updateHilite(java.awt.event.MouseEvent e)

createLinkDecorator

public ZLinkDecorator createLinkDecorator(ZNode src)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Overrides:
keyTyped in class ZEventHandler

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Overrides:
mouseMoved in class ZEventHandler

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Overrides:
mousePressed in class ZEventHandler

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Overrides:
mouseDragged in class ZEventHandler

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Overrides:
mouseReleased in class ZEventHandler