Package com.reportmill.editor
Class RMEditorEvents
- java.lang.Object
- 
- java.awt.event.MouseAdapter
- 
- javax.swing.event.MouseInputAdapter
- 
- com.reportmill.editor.RMEditorEvents
 
 
 
- 
- All Implemented Interfaces:
- java.awt.event.MouseListener,- java.awt.event.MouseMotionListener,- java.awt.event.MouseWheelListener,- java.util.EventListener,- javax.swing.event.MouseInputListener
 
 public class RMEditorEvents extends javax.swing.event.MouseInputAdapterHandles editor methods specific to event operations.
- 
- 
Field SummaryFields Modifier and Type Field Description java.awt.event.MouseEvent_currentEventint_doPopupRMPoint_downPointRMPoint_lastPoint
 - 
Constructor SummaryConstructors Constructor Description RMEditorEvents(RMEditor editor)Creates a new editor events object.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.event.MouseEventgetCurrentEvent()Returns the current event.RMPointgetEventPointInDoc()Returns the current event point in document coords.RMPointgetEventPointInDoc(boolean snapToGrid)Returns the current event point in document coords with an option to adjust to conform to grid.RMPointgetEventPointInShape(boolean snapToGrid)Returns the current event point in super-selected shape coords, optionally snapped to grid.RMPointgetEventPointInShape(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(java.awt.event.MouseEvent anEvent)Handle mouse dragged.voidmousePressed(java.awt.event.MouseEvent anEvent)Handle mouse pressed.voidmouseReleased(java.awt.event.MouseEvent anEvent)Handle mouse released.voidprocessKeyEvent(java.awt.event.KeyEvent anEvent)Handles key press events.- 
Methods inherited from class java.awt.event.MouseAdaptermouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
RMEditorEventspublic RMEditorEvents(RMEditor editor) Creates a new editor events object.
 
- 
 - 
Method Detail- 
processKeyEventpublic void processKeyEvent(java.awt.event.KeyEvent anEvent) Handles key press events.
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent anEvent) Handle mouse pressed.- Specified by:
- mousePressedin interface- java.awt.event.MouseListener
- Overrides:
- mousePressedin class- java.awt.event.MouseAdapter
 
 - 
mouseDraggedpublic void mouseDragged(java.awt.event.MouseEvent anEvent) Handle mouse dragged.- Specified by:
- mouseDraggedin interface- java.awt.event.MouseMotionListener
- Overrides:
- mouseDraggedin class- java.awt.event.MouseAdapter
 
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent anEvent) Handle mouse released.- Specified by:
- mouseReleasedin interface- java.awt.event.MouseListener
- Overrides:
- mouseReleasedin class- java.awt.event.MouseAdapter
 
 - 
getCurrentEventpublic java.awt.event.MouseEvent getCurrentEvent() Returns the current event.
 - 
getEventPointInDocpublic RMPoint getEventPointInDoc() Returns the current event point in document coords.
 - 
getEventPointInDocpublic RMPoint getEventPointInDoc(boolean snapToGrid) Returns the current event point in document coords with an option to adjust to conform to grid.
 - 
getEventPointInShapepublic RMPoint getEventPointInShape(boolean snapToGrid) Returns the current event point in super-selected shape coords, optionally snapped to grid.
 - 
getEventPointInShapepublic RMPoint getEventPointInShape(boolean snapToGrid, boolean snapEdges) Returns the current event point in super-selected shape coords with an option to adjust to conform to grid.
 - 
getGuideCountpublic static int getGuideCount(RMDocument aDoc) Returns the number of guides (4 if snapping to margin, otherwise zero).
 - 
getGuideLocationpublic static float getGuideLocation(RMDocument aDoc, int anIndex) Returns the guide location for the given index.
 - 
getGuideOrientationpublic byte getGuideOrientation(RMDocument aDoc, int anIndex) Returns the guide orientation for the given index.
 
- 
 
-