public class MessenGeometryListener extends edu.umd.cs.piccolo.event.PBasicInputEventHandler implements FeatureCollectionListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ELLIPSE |
static String |
GEOMETRY_CREATED_NOTIFICATION |
protected boolean |
inProgress |
static String |
LINESTRING |
protected MappingComponent |
mc |
static String |
POINT |
static String |
POLYGON |
static String |
RECTANGLE |
protected Point2D |
startPoint |
protected edu.umd.cs.piccolo.nodes.PPath |
tempFeature |
| Modifier | Constructor and Description |
|---|---|
|
MessenGeometryListener(MappingComponent mc)
Creates a new MessenGeometryListener object.
|
protected |
MessenGeometryListener(MappingComponent mc,
Class geometryFeatureClass)
Creates a new instance of CreateGeometryListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allFeaturesRemoved(FeatureCollectionEvent fce)
DOCUMENT ME!
|
void |
featureCollectionChanged()
DOCUMENT ME!
|
void |
featureReconsiderationRequested(FeatureCollectionEvent fce)
DOCUMENT ME!
|
void |
featuresAdded(FeatureCollectionEvent fce)
DOCUMENT ME!
|
void |
featuresChanged(FeatureCollectionEvent fce)
DOCUMENT ME!
|
void |
featureSelectionChanged(FeatureCollectionEvent fce)
DOCUMENT ME!
|
void |
featuresRemoved(FeatureCollectionEvent fce)
DOCUMENT ME!
|
protected void |
finishGeometry(PureNewFeature newFeature)
DOCUMENT ME!
|
protected Color |
getFillingColor()
DOCUMENT ME!
|
protected Point2D[] |
getFinalPoints(Point2D lastPoint)
DOCUMENT ME!
|
Class |
getGeometryFeatureClass()
DOCUMENT ME!
|
protected Color |
getLineColor()
DOCUMENT ME!
|
protected int |
getLineWidth()
DOCUMENT ME!
|
String |
getMode()
DOCUMENT ME!
|
int |
getNumOfEllipseEdges()
DOCUMENT ME!
|
protected Point2D[] |
getPoints(boolean isFinal,
Point2D lastPoint)
DOCUMENT ME!
|
protected Point2D[] |
getPoints(Point2D lastPoint)
DOCUMENT ME!
|
protected edu.umd.cs.piccolo.nodes.PPath |
initTempFeature(boolean filled)
DOCUMENT ME!
|
boolean |
isInMode(String mode)
DOCUMENT ME!
|
void |
keyPressed(edu.umd.cs.piccolo.event.PInputEvent event)
DOCUMENT ME!
|
void |
mouseDragged(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
DOCUMENT ME!
|
void |
mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
DOCUMENT ME!
|
void |
mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
DOCUMENT ME!
|
void |
mouseReleased(edu.umd.cs.piccolo.event.PInputEvent arg0)
DOCUMENT ME!
|
void |
mouseWheelRotated(edu.umd.cs.piccolo.event.PInputEvent evt)
DOCUMENT ME!
|
void |
setGeometryFeatureClass(Class<? extends PureNewFeature> geometryFeatureClass)
DOCUMENT ME!
|
void |
setMode(String m)
DOCUMENT ME!
|
void |
setNumOfEllipseEdges(int numOfEllipseEdges)
DOCUMENT ME!
|
protected void |
updatePolygon(Point2D lastPoint)
DOCUMENT ME!
|
public static final String LINESTRING
public static final String POINT
public static final String POLYGON
public static final String RECTANGLE
public static final String ELLIPSE
public static final String GEOMETRY_CREATED_NOTIFICATION
protected Point2D startPoint
protected edu.umd.cs.piccolo.nodes.PPath tempFeature
protected MappingComponent mc
protected boolean inProgress
public MessenGeometryListener(MappingComponent mc)
mc - DOCUMENT ME!protected MessenGeometryListener(MappingComponent mc, Class geometryFeatureClass)
mc - DOCUMENT ME!geometryFeatureClass - DOCUMENT ME!public void setMode(String m) throws IllegalArgumentException
m - DOCUMENT ME!IllegalArgumentException - DOCUMENT ME!public void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseMoved in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpInputEvent - DOCUMENT ME!public void mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mousePressed in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpInputEvent - DOCUMENT ME!public void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent arg0)
mouseReleased in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerarg0 - DOCUMENT ME!public void keyPressed(edu.umd.cs.piccolo.event.PInputEvent event)
keyPressed in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerevent - DOCUMENT ME!protected Color getFillingColor()
protected Color getLineColor()
protected int getLineWidth()
protected void updatePolygon(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected Point2D[] getFinalPoints(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected Point2D[] getPoints(Point2D lastPoint)
lastPoint - DOCUMENT ME!protected Point2D[] getPoints(boolean isFinal, Point2D lastPoint)
isFinal - DOCUMENT ME!lastPoint - DOCUMENT ME!public boolean isInMode(String mode)
mode - DOCUMENT ME!public String getMode()
public Class getGeometryFeatureClass()
public void setGeometryFeatureClass(Class<? extends PureNewFeature> geometryFeatureClass)
geometryFeatureClass - DOCUMENT ME!public void allFeaturesRemoved(FeatureCollectionEvent fce)
allFeaturesRemoved in interface FeatureCollectionListenerfce - DOCUMENT ME!public void mouseDragged(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseDragged in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpInputEvent - DOCUMENT ME!public void featureCollectionChanged()
featureCollectionChanged in interface FeatureCollectionListenerpublic void featureReconsiderationRequested(FeatureCollectionEvent fce)
featureReconsiderationRequested in interface FeatureCollectionListenerfce - DOCUMENT ME!public void featureSelectionChanged(FeatureCollectionEvent fce)
featureSelectionChanged in interface FeatureCollectionListenerfce - DOCUMENT ME!public void featuresAdded(FeatureCollectionEvent fce)
featuresAdded in interface FeatureCollectionListenerfce - DOCUMENT ME!public void featuresChanged(FeatureCollectionEvent fce)
featuresChanged in interface FeatureCollectionListenerfce - DOCUMENT ME!public void featuresRemoved(FeatureCollectionEvent fce)
featuresRemoved in interface FeatureCollectionListenerfce - DOCUMENT ME!protected void finishGeometry(PureNewFeature newFeature)
newFeature - DOCUMENT ME!public void setNumOfEllipseEdges(int numOfEllipseEdges)
numOfEllipseEdges - DOCUMENT ME!public int getNumOfEllipseEdges()
protected edu.umd.cs.piccolo.nodes.PPath initTempFeature(boolean filled)
filled - DOCUMENT ME!public void mouseWheelRotated(edu.umd.cs.piccolo.event.PInputEvent evt)
mouseWheelRotated in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerevt - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.