Package com.bc.ceres.swing.figure
Class ViewportInteractor
- java.lang.Object
-
- com.bc.ceres.swing.figure.AbstractInteractor
-
- com.bc.ceres.swing.figure.ViewportInteractor
-
- All Implemented Interfaces:
Interactor
,KeyListener
,MouseListener
,MouseMotionListener
,EventListener
- Direct Known Subclasses:
FigureEditorInteractor
,PanInteractor
,ZoomInteractor
public abstract class ViewportInteractor extends AbstractInteractor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewportInteractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AffineTransform
getModelToViewTransform(InputEvent inputEvent)
protected Viewport
getViewport(InputEvent inputEvent)
protected AffineTransform
getViewToModelTransform(InputEvent inputEvent)
protected Point2D
toModelPoint(InputEvent inputEvent, Point2D point)
protected Point2D
toModelPoint(MouseEvent mouseEvent)
protected Shape
toModelShape(InputEvent inputEvent, Shape shape)
-
Methods inherited from class com.bc.ceres.swing.figure.AbstractInteractor
activate, addListener, cancelInteraction, deactivate, getCursor, getListeners, isActive, isLeftMouseButtonDown, isMultiButton1Click, isSingleButton1Click, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, removeListener, startInteraction, stopInteraction
-
-
-
-
Method Detail
-
getViewport
protected Viewport getViewport(InputEvent inputEvent)
-
getViewToModelTransform
protected AffineTransform getViewToModelTransform(InputEvent inputEvent)
-
getModelToViewTransform
protected AffineTransform getModelToViewTransform(InputEvent inputEvent)
-
toModelPoint
protected Point2D toModelPoint(MouseEvent mouseEvent)
-
toModelPoint
protected Point2D toModelPoint(InputEvent inputEvent, Point2D point)
-
toModelShape
protected Shape toModelShape(InputEvent inputEvent, Shape shape)
-
-