Class InsertLineFigureInteractor
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.InsertLineFigureInteractor
- All Implemented Interfaces:
Interactor
,KeyListener
,MouseListener
,MouseMotionListener
,EventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelInteraction
(InputEvent event) void
mouseDragged
(MouseEvent event) Invoked when a mouse button is pressed on a component and then dragged.void
mousePressed
(MouseEvent event) Invoked when a mouse button has been pressed on a component.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, mouseClicked, mouseEntered, mouseExited, mouseMoved, removeListener, startInteraction
-
Constructor Details
-
InsertLineFigureInteractor
public InsertLineFigureInteractor()
-
-
Method Details
-
cancelInteraction
- Overrides:
cancelInteraction
in classAbstractInteractor
-
stopInteraction
- Overrides:
stopInteraction
in classAbstractInteractor
-
mousePressed
Description copied from class:AbstractInteractor
Invoked when a mouse button has been pressed on a component.The default implementation does nothing.
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classAbstractInteractor
- Parameters:
event
- The mouse event.
-
mouseReleased
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.
-
mouseDragged
Description copied from class:AbstractInteractor
Invoked when a mouse button is pressed on a component and then dragged.MOUSE_DRAGGED
events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).Due to platform-dependent Drag&Drop implementations,
MOUSE_DRAGGED
events may not be delivered during a native Drag&Drop operation.The default implementation does nothing.
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classAbstractInteractor
- Parameters:
event
- The mouse event.
-