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 Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
Constructors -
Method Summary
Modifier 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.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMovedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExitedMethods inherited from interface java.awt.event.MouseMotionListener
mouseMoved
-
Field Details
-
_currentEvent
-
_downPoint
-
_lastPoint
-
_doPopup
public int _doPopup
-
-
Constructor Details
-
RMEditorEvents
Creates a new editor events object.
-
-
Method Details
-
processKeyEvent
Handles key press events. -
mousePressed
Handle mouse pressed.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter
-
mouseDragged
Handle mouse dragged.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMouseAdapter
-
mouseReleased
Handle mouse released.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMouseAdapter
-
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. -
getGuideOrientation
Returns the guide orientation for the given index.
-