Class InsertRectangularFigureInteractor
- 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.InsertRectangularFigureInteractor
 
 
 
 
- 
- All Implemented Interfaces:
- Interactor,- KeyListener,- MouseListener,- MouseMotionListener,- EventListener
 - Direct Known Subclasses:
- InsertEllipseFigureInteractor,- InsertRectangleFigureInteractor
 
 public abstract class InsertRectangularFigureInteractor extends FigureEditorInteractor 
- 
- 
Constructor SummaryConstructors Constructor Description InsertRectangularFigureInteractor()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancelInteraction(InputEvent event)protected abstract RectangularShapecreateRectangularShape(Point2D point)voidmouseDragged(MouseEvent event)Invoked when a mouse button is pressed on a component and then dragged.voidmousePressed(MouseEvent event)Invoked when a mouse button has been pressed on a component.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.FigureEditorInteractorgetFigureEditor, getViewport
 - 
Methods inherited from class com.bc.ceres.swing.figure.ViewportInteractorgetModelToViewTransform, getViewToModelTransform, toModelPoint, toModelPoint, toModelShape
 - 
Methods inherited from class com.bc.ceres.swing.figure.AbstractInteractoractivate, addListener, deactivate, getCursor, getListeners, isActive, isLeftMouseButtonDown, isMultiButton1Click, isSingleButton1Click, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, removeListener, startInteraction
 
- 
 
- 
- 
- 
Method Detail- 
createRectangularShapeprotected abstract RectangularShape createRectangularShape(Point2D point) 
 - 
cancelInteractionpublic void cancelInteraction(InputEvent event) - Overrides:
- cancelInteractionin class- AbstractInteractor
 
 - 
stopInteractionprotected void stopInteraction(InputEvent inputEvent) - Overrides:
- stopInteractionin class- AbstractInteractor
 
 - 
mousePressedpublic void mousePressed(MouseEvent event) Description copied from class:AbstractInteractorInvoked when a mouse button has been pressed on a component.The default implementation does nothing. - Specified by:
- mousePressedin interface- MouseListener
- Overrides:
- mousePressedin class- AbstractInteractor
- Parameters:
- event- The mouse event.
 
 - 
mouseReleasedpublic void mouseReleased(MouseEvent event) Description copied from class:AbstractInteractorInvoked when a mouse button has been released on a component.The default implementation does nothing. - Specified by:
- mouseReleasedin interface- MouseListener
- Overrides:
- mouseReleasedin class- AbstractInteractor
- Parameters:
- event- The mouse event.
 
 - 
mouseDraggedpublic void mouseDragged(MouseEvent event) Description copied from class:AbstractInteractorInvoked when a mouse button is pressed on a component and then dragged.MOUSE_DRAGGEDevents 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_DRAGGEDevents may not be delivered during a native Drag&Drop operation.The default implementation does nothing. - Specified by:
- mouseDraggedin interface- MouseMotionListener
- Overrides:
- mouseDraggedin class- AbstractInteractor
- Parameters:
- event- The mouse event.
 
 
- 
 
-