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
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
src
protected ZNode src
currentNode
protected ZNode currentNode
currentLink
protected ZLinkDecorator currentLink
links
protected java.util.Vector links
definingLink
protected boolean definingLink
ZLinkEventHandler
public ZLinkEventHandler(java.awt.Component c,
ZSurface v)
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