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 intgetGuideCount(RMDocument aDoc) Returns the number of guides (4 if snapping to margin, otherwise zero).static doublegetGuideLocation(RMDocument aDoc, int anIndex) Returns the guide location for the given index.booleanReturns whether to override preview mode.voidkeyPressed(KeyEvent anEvent) Handle key pressed.voidkeyReleased(KeyEvent anEvent) Handle key released.voidHandle key pressed.voidmouseDragged(MouseEvent anEvent) Handle mouse dragged.voidmouseMoved(MouseEvent anEvent) Handle mouse moved event.voidmousePressed(MouseEvent anEvent) Handle mouse pressed.voidmouseReleased(MouseEvent anEvent) Handle mouse released.voidprocessKeyEvent(KeyEvent anEvent) Handles key press events.voidsetOverridePreview(boolean aValue) Sets whether to override preview mode.Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdapterImpl
copy, mouseClicked, mouseEntered, mouseExited, paint, updateShapeUnderStackMethods 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:
mousePressedin classRMViewerInputAdapterImpl
-
mouseDragged
Handle mouse dragged.- Overrides:
mouseDraggedin classRMViewerInputAdapterImpl
-
mouseReleased
Handle mouse released.- Overrides:
mouseReleasedin classRMViewerInputAdapterImpl
-
mouseMoved
Handle mouse moved event.- Overrides:
mouseMovedin classRMViewerInputAdapterImpl
-
keyReleased
Handle key released.- Overrides:
keyReleasedin classRMViewerInputAdapter
-
keyPressed
Handle key pressed.- Overrides:
keyPressedin classRMViewerInputAdapter
-
keyTyped
Handle key pressed.- Overrides:
keyTypedin classRMViewerInputAdapter
-
processKeyEvent
Handles key press events.- Overrides:
processKeyEventin 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.
-