Package com.reportmill.editor
Class RMEditorEvents
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
com.reportmill.editor.RMEditorEvents
- All Implemented Interfaces:
- MouseListener,- MouseMotionListener,- MouseWheelListener,- EventListener,- MouseInputListener
Handles editor methods specific to event operations.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionint
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the current event.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 floatgetGuideLocation(RMDocument aDoc, int anIndex) Returns the guide location for the given index.bytegetGuideOrientation(RMDocument aDoc, int anIndex) Returns the guide orientation for the given index.voidmouseDragged(MouseEvent anEvent) Handle mouse dragged.voidmousePressed(MouseEvent anEvent) Handle mouse pressed.voidmouseReleased(MouseEvent anEvent) Handle mouse released.voidprocessKeyEvent(KeyEvent anEvent) Handles key press events.Methods inherited from class java.awt.event.MouseAdaptermouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMovedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListenermouseClicked, mouseEntered, mouseExitedMethods inherited from interface java.awt.event.MouseMotionListenermouseMoved
- 
Field Details- 
_currentEvent
- 
_downPoint
- 
_lastPoint
- 
_doPopuppublic int _doPopup
 
- 
- 
Constructor Details- 
RMEditorEventsCreates a new editor events object.
 
- 
- 
Method Details- 
processKeyEventHandles key press events.
- 
mousePressedHandle mouse pressed.- Specified by:
- mousePressedin interface- MouseListener
- Overrides:
- mousePressedin class- MouseAdapter
 
- 
mouseDraggedHandle mouse dragged.- Specified by:
- mouseDraggedin interface- MouseMotionListener
- Overrides:
- mouseDraggedin class- MouseAdapter
 
- 
mouseReleasedHandle mouse released.- Specified by:
- mouseReleasedin interface- MouseListener
- Overrides:
- mouseReleasedin class- MouseAdapter
 
- 
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.
- 
getGuideOrientationReturns the guide orientation for the given index.
 
-