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 int
getGuideCount
(RMDocument aDoc) Returns the number of guides (4 if snapping to margin, otherwise zero).static float
getGuideLocation
(RMDocument aDoc, int anIndex) Returns the guide location for the given index.byte
getGuideOrientation
(RMDocument aDoc, int anIndex) Returns the guide orientation for the given index.void
mouseDragged
(MouseEvent anEvent) Handle mouse dragged.void
mousePressed
(MouseEvent anEvent) Handle mouse pressed.void
mouseReleased
(MouseEvent anEvent) Handle mouse released.void
processKeyEvent
(KeyEvent anEvent) Handles key press events.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited
Methods 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:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
-
mouseDragged
Handle mouse dragged.- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classMouseAdapter
-
mouseReleased
Handle mouse released.- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in 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.
-