|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.event.ZSelectionModifyHandler
ZSelectionModifyHandler is a ZEventHandler that allows items to be selected with the mouse, and maintains the current selection. As an event handler, ZSelectionManager directly supports the following actions:
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.
ZSelectionManager
,
ZCompositeSelectionHandler
,
ZSelectionDeleteHandler
,
ZSelectionMoveHandler
,
ZSelectionScaleHandler
, Serialized FormConstructor Summary | |
ZSelectionModifyHandler(ZNode node,
ZCamera camera,
ZCanvas canvas,
ZGroup marqueeLayer)
Construct a new ZSelectionModifyHandler. |
|
ZSelectionModifyHandler(ZNode node,
ZCanvas canvas,
ZGroup marqueeLayer)
Construct a new ZSelectionModifyHandler. |
Method Summary | |
ZCamera |
getCamera()
Returns the camera on which this event handler is watching for selection change |
ZCanvas |
getCanvas()
Returns the canvas to which this selection manager is attached. |
ZGroup |
getMarqueeLayer()
Determine the "marquee" layer that is used for selection. |
ZNode |
getNode()
Returns the node to which this selection manager is attached. |
boolean |
isActive()
Determines if this event handler is active. |
void |
mouseClicked(ZMouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(ZMouseEvent e)
Mouse drag event handler |
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)
Mouse press event handler |
void |
mouseReleased(ZMouseEvent e)
Mouse release event handler |
void |
setActive(boolean active)
Specifies whether this event handler is active |
void |
setMarqueeLayer(ZGroup layer)
Specify the node that the selection "marquee" should be put on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZSelectionModifyHandler(ZNode node, ZCanvas canvas, ZGroup marqueeLayer)
node
- The node this event handler attaches to.canvas
- The canvas this event handler attaches tomarqueeLayer
- The layer to draw the marquee onpublic ZSelectionModifyHandler(ZNode node, ZCamera camera, ZCanvas canvas, ZGroup marqueeLayer)
node
- The node this event handler attaches to.camera
- The camera to which this event handler attaches.canvas
- The canvas this event handler attaches tomarqueeLayer
- The layer to draw the marquee onMethod Detail |
public void setActive(boolean active)
setActive
in interface ZEventHandler
active
- True to make this event handler activepublic boolean isActive()
isActive
in interface ZEventHandler
public ZNode getNode()
public ZCamera getCamera()
public ZCanvas getCanvas()
public void setMarqueeLayer(ZGroup layer)
layer
- The node that the marquee should be put underpublic ZGroup getMarqueeLayer()
public void mousePressed(ZMouseEvent e)
mousePressed
in interface ZMouseListener
e
- The event.public void mouseDragged(ZMouseEvent e)
mouseDragged
in interface ZMouseMotionListener
e
- The event.public void mouseReleased(ZMouseEvent e)
mouseReleased
in interface ZMouseListener
e
- The event.public void mouseEntered(ZMouseEvent e)
mouseEntered
in interface ZMouseListener
public void mouseExited(ZMouseEvent e)
mouseExited
in interface ZMouseListener
public void mouseClicked(ZMouseEvent e)
mouseClicked
in interface ZMouseListener
public void mouseMoved(ZMouseEvent e)
mouseMoved
in interface ZMouseMotionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |