|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.event.ZLinkEventHandler
ZLinkEventHandler is a simple event handler for interactively creating hyperlinks. This supports clicking on an object to define a link from that object, and then click on another object to define a link to that second object as a destination. This inserts a ZAnchorGroup which can then be used to follow the link.
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.
| Constructor Summary | |
ZLinkEventHandler(ZNode node,
ZCanvas canvas)
Create a new link event handler. |
|
| 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 |
mouseClicked(ZMouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(ZMouseEvent e)
Invoked when a mouse button is pressed on a node and then dragged. |
void |
mouseEntered(ZMouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(ZMouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(ZMouseEvent e)
Invoked when the mouse button has been moved on a node (with no buttons no down). |
void |
mousePressed(ZMouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(ZMouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
setActive(boolean active)
Specifies whether this event handler is active or not. |
protected void |
updateHilite(ZMouseEvent e)
Internal method to update the hilite on the object the mouse moves over. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ZLinkEventHandler(ZNode node,
ZCanvas canvas)
node - The node this event handler attaches to.canvas - The canvas this event handler attaches to| Method Detail |
public void setActive(boolean active)
active - True to make this event handler activepublic boolean isActive()
protected void updateHilite(ZMouseEvent e)
e - The mouse event that generated the hilite requestpublic void keyPressed(java.awt.event.KeyEvent e)
e - The event.public void keyReleased(java.awt.event.KeyEvent e)
e - The event.public void keyTyped(java.awt.event.KeyEvent e)
e - The event.public void mouseMoved(ZMouseEvent e)
public void mousePressed(ZMouseEvent e)
public void mouseDragged(ZMouseEvent e)
public void mouseReleased(ZMouseEvent e)
public void mouseEntered(ZMouseEvent e)
public void mouseExited(ZMouseEvent e)
public void mouseClicked(ZMouseEvent e)
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||