Class RMEditorInputAdapter
java.lang.Object
com.inductiveautomation.rm.viewer.RMViewerInputAdapter
com.inductiveautomation.rm.viewer.RMViewerInputAdapterImpl
com.inductiveautomation.rm.editor.RMEditorInputAdapter
Handles editor methods specific to event operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the current event.Returns the viewer as an editor.Returns the current event point in document coords.getEventPointInDoc
(boolean snapToGrid) Returns the current event point in document coords with an option to adjust to conform to grid.getEventPointInShape
(boolean snapToGrid) Returns the current event point in super-selected shape coords, optionally snapped to grid.getEventPointInShape
(boolean snapToGrid, boolean snapEdges) Returns the current event point in super-selected shape coords with an option to adjust to conform to grid.static int
getGuideCount
(RMDocument aDoc) Returns the number of guides (4 if snapping to margin, otherwise zero).static double
getGuideLocation
(RMDocument aDoc, int anIndex) Returns the guide location for the given index.boolean
Returns whether to override preview mode.void
keyPressed
(KeyEvent anEvent) Handle key pressed.void
keyReleased
(KeyEvent anEvent) Handle key released.void
Handle key pressed.void
mouseDragged
(MouseEvent anEvent) Handle mouse dragged.void
mouseMoved
(MouseEvent anEvent) Handle mouse moved event.void
mousePressed
(MouseEvent anEvent) Handle mouse pressed.void
mouseReleased
(MouseEvent anEvent) Handle mouse released.void
processKeyEvent
(KeyEvent anEvent) Handles key press events.void
setOverridePreview
(boolean aValue) Sets whether to override preview mode.Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdapterImpl
copy, mouseClicked, mouseEntered, mouseExited, paint, updateShapeUnderStack
Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdapter
getViewer, processMouseEvent, processMouseMotionEvent
-
Constructor Details
-
RMEditorInputAdapter
Creates a new editor events object.
-
-
Method Details
-
getEditor
Returns the viewer as an editor. -
mousePressed
Handle mouse pressed.- Overrides:
mousePressed
in classRMViewerInputAdapterImpl
-
mouseDragged
Handle mouse dragged.- Overrides:
mouseDragged
in classRMViewerInputAdapterImpl
-
mouseReleased
Handle mouse released.- Overrides:
mouseReleased
in classRMViewerInputAdapterImpl
-
mouseMoved
Handle mouse moved event.- Overrides:
mouseMoved
in classRMViewerInputAdapterImpl
-
keyReleased
Handle key released.- Overrides:
keyReleased
in classRMViewerInputAdapter
-
keyPressed
Handle key pressed.- Overrides:
keyPressed
in classRMViewerInputAdapter
-
keyTyped
Handle key pressed.- Overrides:
keyTyped
in classRMViewerInputAdapter
-
processKeyEvent
Handles key press events.- Overrides:
processKeyEvent
in classRMViewerInputAdapter
-
getCurrentEvent
Returns the current event. -
getEventPointInDoc
Returns the current event point in document coords. -
getEventPointInDoc
Returns the current event point in document coords with an option to adjust to conform to grid. -
getEventPointInShape
Returns the current event point in super-selected shape coords, optionally snapped to grid. -
getEventPointInShape
Returns the current event point in super-selected shape coords with an option to adjust to conform to grid. -
getGuideCount
Returns the number of guides (4 if snapping to margin, otherwise zero). -
getGuideLocation
Returns the guide location for the given index. -
getOverridePreview
public boolean getOverridePreview()Returns whether to override preview mode. -
setOverridePreview
public void setOverridePreview(boolean aValue) Sets whether to override preview mode.
-