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
public class InsertMultiPointFigureInteractor extends FigureEditorInteractor
-
-
Constructor Summary
Constructors Constructor Description InsertMultiPointFigureInteractor(boolean polygonal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelInteraction(InputEvent event)
protected Path2D
createPath()
protected Point2D[]
getPoints()
boolean
isPolygonal()
void
mouseClicked(MouseEvent event)
Invoked when the mouse button has been clicked (pressed and released) on a component.void
mouseMoved(MouseEvent event)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.void
mouseReleased(MouseEvent event)
Invoked when a mouse button has been released on a component.protected void
stopInteraction(InputEvent inputEvent)
-
Methods inherited from class com.bc.ceres.swing.figure.FigureEditorInteractor
getFigureEditor, getViewport
-
Methods inherited from class com.bc.ceres.swing.figure.ViewportInteractor
getModelToViewTransform, getViewToModelTransform, toModelPoint, toModelPoint, toModelShape
-
Methods 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
-
-
-
-
Method Detail
-
isPolygonal
public boolean isPolygonal()
-
cancelInteraction
public void cancelInteraction(InputEvent event)
- Overrides:
cancelInteraction
in classAbstractInteractor
-
stopInteraction
protected void stopInteraction(InputEvent inputEvent)
- Overrides:
stopInteraction
in classAbstractInteractor
-
mouseClicked
public void mouseClicked(MouseEvent event)
Description copied from class:AbstractInteractor
Invoked when the mouse button has been clicked (pressed and released) on a component.The default implementation does nothing.
- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classAbstractInteractor
- Parameters:
event
- The mouse event.
-
mouseReleased
public void mouseReleased(MouseEvent event)
Description copied from class:AbstractInteractor
Invoked when a mouse button has been released on a component.The default implementation does nothing.
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classAbstractInteractor
- Parameters:
event
- The mouse event.
-
mouseMoved
public void mouseMoved(MouseEvent event)
Description copied from class:AbstractInteractor
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.The default implementation does nothing.
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classAbstractInteractor
- Parameters:
event
- The mouse event.
-
createPath
protected Path2D createPath()
-
getPoints
protected Point2D[] getPoints()
-
-