public class CreateSimpleGeometryListener
extends edu.umd.cs.piccolo.event.PBasicInputEventHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOMETRY_CREATED_NOTIFICATION |
protected boolean |
inProgress |
protected MappingComponent |
mc |
protected Point2D |
startPoint |
protected edu.umd.cs.piccolo.nodes.PPath |
tempFeature |
| Constructor and Description |
|---|
CreateSimpleGeometryListener(MappingComponent mc)
Creates a new instance of CreateGeometryListener.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishGeometry(PureNewFeature newFeature)
DOCUMENT ME!
|
protected Color |
getFillingColor()
DOCUMENT ME!
|
PureNewFeature |
getNewFeature()
DOCUMENT ME!
|
void |
mouseDragged(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mouseReleased(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
protected void |
updatePolygon(Point2D lastPoint)
DOCUMENT ME!
|
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toStringpublic static final String GEOMETRY_CREATED_NOTIFICATION
protected Point2D startPoint
protected edu.umd.cs.piccolo.nodes.PPath tempFeature
protected MappingComponent mc
protected boolean inProgress
public CreateSimpleGeometryListener(MappingComponent mc)
mc - DOCUMENT ME!public void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseMoved in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpublic void mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mousePressed in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpublic void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseReleased in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerprotected Color getFillingColor()
protected void updatePolygon(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected void finishGeometry(PureNewFeature newFeature)
newFeature - DOCUMENT ME!public PureNewFeature getNewFeature()
public void mouseDragged(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseDragged in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerCopyright © 2012–2025 cismet GmbH. All rights reserved.