|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolox.pswing.PSwingEventHandler
public class PSwingEventHandler
Event handler to send MousePressed, MouseReleased, MouseMoved, MouseClicked, and MouseDragged events on Swing components within a PCanvas.
Constructor Summary | |
---|---|
PSwingEventHandler(PSwingCanvas canvas)
Constructs a new PSwingEventHandler for the given canvas. |
|
PSwingEventHandler(PSwingCanvas canvas,
PNode node)
Constructs a new PSwingEventHandler for the given canvas, and a node that will recieve the mouse events. |
Method Summary | |
---|---|
boolean |
isActive()
Determines if this event handler is active. |
void |
processEvent(PInputEvent aEvent,
int type)
Process a piccolo event and (if active) dispatch the corresponding Swing event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSwingEventHandler(PSwingCanvas canvas, PNode node)
canvas
- the canvas associated with this PSwingEventHandler.node
- the node the mouse listeners will be attached to.public PSwingEventHandler(PSwingCanvas canvas)
Method Detail |
---|
public boolean isActive()
public void processEvent(PInputEvent aEvent, int type)
processEvent
in interface PInputEventListener
aEvent
- type
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |