public class MeasurementListener
extends edu.umd.cs.piccolo.event.PBasicInputEventHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
inProgress |
static String |
LENGTH_CHANGED |
protected MappingComponent |
mc |
protected Point2D |
startPoint |
protected edu.umd.cs.piccolo.nodes.PPath |
tempFeature |
| Constructor and Description |
|---|
MeasurementListener(MappingComponent mc)
Creates a new instance of CreatePolygonFeatureListener.
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
getFillingColor()
DOCUMENT ME!
|
double |
getMeasuredLength()
DOCUMENT ME!
|
protected Point2D[] |
getPoints(Point2D lastPoint)
DOCUMENT ME!
|
void |
mouseClicked(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
protected void |
postLength()
DOCUMENT ME!
|
void |
setMeasuredLength(double measuredLength)
DOCUMENT ME!
|
protected void |
updatePolygon(Point2D lastPoint)
DOCUMENT ME!
|
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toStringpublic static final String LENGTH_CHANGED
protected Point2D startPoint
protected edu.umd.cs.piccolo.nodes.PPath tempFeature
protected MappingComponent mc
protected boolean inProgress
public MeasurementListener(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 mouseClicked(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseClicked in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerprotected Color getFillingColor()
protected void updatePolygon(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected Point2D[] getPoints(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected void postLength()
public double getMeasuredLength()
public void setMeasuredLength(double measuredLength)
measuredLength - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.