Class InsertMultiPointFigureInteractor
java.lang.Object
com.bc.ceres.swing.figure.AbstractInteractor
com.bc.ceres.swing.figure.ViewportInteractor
com.bc.ceres.swing.figure.FigureEditorInteractor
com.bc.ceres.swing.figure.interactions.InsertMultiPointFigureInteractor
- All Implemented Interfaces:
Interactor,KeyListener,MouseListener,MouseMotionListener,EventListener
- Direct Known Subclasses:
InsertPolygonFigureInteractor,InsertPolylineFigureInteractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelInteraction(InputEvent event) protected Path2Dprotected Point2D[]booleanvoidmouseClicked(MouseEvent event) Invoked when the mouse button has been clicked (pressed and released) on a component.voidmouseMoved(MouseEvent event) Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.voidmouseReleased(MouseEvent event) Invoked when a mouse button has been released on a component.protected voidstopInteraction(InputEvent inputEvent) Methods inherited from class com.bc.ceres.swing.figure.FigureEditorInteractor
getFigureEditor, getViewportMethods inherited from class com.bc.ceres.swing.figure.ViewportInteractor
getModelToViewTransform, getViewToModelTransform, toModelPoint, toModelPoint, toModelShapeMethods inherited from class com.bc.ceres.swing.figure.AbstractInteractor
activate, addListener, deactivate, getCursor, getListeners, isActive, isLeftMouseButtonDown, isMultiButton1Click, isSingleButton1Click, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mousePressed, removeListener, startInteraction
-
Constructor Details
-
InsertMultiPointFigureInteractor
public InsertMultiPointFigureInteractor(boolean polygonal)
-
-
Method Details
-
isPolygonal
public boolean isPolygonal() -
cancelInteraction
- Overrides:
cancelInteractionin classAbstractInteractor
-
stopInteraction
- Overrides:
stopInteractionin classAbstractInteractor
-
mouseClicked
Description copied from class:AbstractInteractorInvoked when the mouse button has been clicked (pressed and released) on a component.The default implementation does nothing.
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classAbstractInteractor- Parameters:
event- The mouse event.
-
mouseReleased
Description copied from class:AbstractInteractorInvoked when a mouse button has been released on a component.The default implementation does nothing.
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classAbstractInteractor- Parameters:
event- The mouse event.
-
mouseMoved
Description copied from class:AbstractInteractorInvoked when the mouse cursor has been moved onto a component but no buttons have been pushed.The default implementation does nothing.
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractInteractor- Parameters:
event- The mouse event.
-
createPath
-
getPoints
-