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 SummaryConstructors
- 
Method SummaryModifier 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.RMViewerInputAdapterImplcopy, mouseClicked, mouseEntered, mouseExited, paint, updateShapeUnderStackMethods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdaptergetViewer, processMouseEvent, processMouseMotionEvent
- 
Constructor Details- 
RMEditorInputAdapterCreates a new editor events object.
 
- 
- 
Method Details- 
getEditorReturns the viewer as an editor.
- 
mousePressedHandle mouse pressed.- Overrides:
- mousePressedin class- RMViewerInputAdapterImpl
 
- 
mouseDraggedHandle mouse dragged.- Overrides:
- mouseDraggedin class- RMViewerInputAdapterImpl
 
- 
mouseReleasedHandle mouse released.- Overrides:
- mouseReleasedin class- RMViewerInputAdapterImpl
 
- 
mouseMovedHandle mouse moved event.- Overrides:
- mouseMovedin class- RMViewerInputAdapterImpl
 
- 
keyReleasedHandle key released.- Overrides:
- keyReleasedin class- RMViewerInputAdapter
 
- 
keyPressedHandle key pressed.- Overrides:
- keyPressedin class- RMViewerInputAdapter
 
- 
keyTypedHandle key pressed.- Overrides:
- keyTypedin class- RMViewerInputAdapter
 
- 
processKeyEventHandles key press events.- Overrides:
- processKeyEventin class- RMViewerInputAdapter
 
- 
getCurrentEventReturns the current event.
- 
getEventPointInDocReturns the current event point in document coords.
- 
getEventPointInDocReturns the current event point in document coords with an option to adjust to conform to grid.
- 
getEventPointInShapeReturns the current event point in super-selected shape coords, optionally snapped to grid.
- 
getEventPointInShapeReturns the current event point in super-selected shape coords with an option to adjust to conform to grid.
- 
getGuideCountReturns the number of guides (4 if snapping to margin, otherwise zero).
- 
getGuideLocationReturns the guide location for the given index.
- 
getOverridePreviewpublic boolean getOverridePreview()Returns whether to override preview mode.
- 
setOverridePreviewpublic void setOverridePreview(boolean aValue) Sets whether to override preview mode.
 
-