public class PSwingEventHandler extends Object implements edu.umd.cs.piccolo.event.PInputEventListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active
True when event handlers are set active.
|
protected edu.umd.cs.piccolo.PNode |
listenNode
The node to listen to for events.
|
| Constructor and Description |
|---|
PSwingEventHandler(PSwingCanvas canvas)
Constructs a new ZSwingEventHandler for the given canvas.
|
PSwingEventHandler(PSwingCanvas canvas,
edu.umd.cs.piccolo.PNode node)
Constructs a new ZSwingEventHandler for the given canvas, and a node that will recieve the mouse events.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive()
Determines if this event handler is active.
|
void |
processEvent(edu.umd.cs.piccolo.event.PInputEvent aEvent,
int type) |
void |
setActive(boolean active)
DOCUMENT ME!
|
protected edu.umd.cs.piccolo.PNode listenNode
protected boolean active
public PSwingEventHandler(PSwingCanvas canvas)
canvas - DOCUMENT ME!public PSwingEventHandler(PSwingCanvas canvas, edu.umd.cs.piccolo.PNode node)
canvas - the canvas associated with this ZSwingEventHandler.node - the node the mouse listeners will be attached to.public void setActive(boolean active)
active - DOCUMENT ME!public boolean isActive()
public void processEvent(edu.umd.cs.piccolo.event.PInputEvent aEvent,
int type)
processEvent in interface edu.umd.cs.piccolo.event.PInputEventListenerCopyright © 2012–2026 cismet GmbH. All rights reserved.