|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.piccolo.event.PBasicInputEventHandler
repast.simphony.visualization.editor.GridAddHandler
public class GridAddHandler
Handler for adding via mouse click.
| Constructor Summary | |
|---|---|
GridAddHandler(edu.umd.cs.piccolo.PCanvas canvas,
DisplayEditor2D editor,
Grid grid)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
destroy()
Deprecated. Cleans up anything created by this listener in init. |
void |
init()
Deprecated. Initializes this listener. |
void |
mouseClicked(edu.umd.cs.piccolo.event.PInputEvent evt)
Deprecated. double[] origin = space.getDimensions().originToDoubleArray(null); double xOffset = origin[0]; double yOffset = origin[1]; if (x < space.getDimensions().getWidth() && x >= 0 && y < space.getDimensions().getHeight() && y >= 0) { editor.addAgentAt(x-xOffset, y-yOffset); |
void |
mouseEntered(edu.umd.cs.piccolo.event.PInputEvent evt)
Deprecated. |
void |
start()
Deprecated. Starts the listener. |
void |
stop()
Deprecated. Stops the listener. |
| Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler |
|---|
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseDragged, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.umd.cs.piccolo.event.PInputEventListener |
|---|
processEvent |
| Constructor Detail |
|---|
public GridAddHandler(edu.umd.cs.piccolo.PCanvas canvas,
DisplayEditor2D editor,
Grid grid)
| Method Detail |
|---|
public void init()
PEditorEventListener
init in interface PEditorEventListenerpublic void destroy()
PEditorEventListener
destroy in interface PEditorEventListenerpublic void start()
start in interface PEditorEventListenerpublic void stop()
stop in interface PEditorEventListenerpublic void mouseEntered(edu.umd.cs.piccolo.event.PInputEvent evt)
mouseEntered in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpublic void mouseClicked(edu.umd.cs.piccolo.event.PInputEvent evt)
mouseClicked in class edu.umd.cs.piccolo.event.PBasicInputEventHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||