Package com.inductiveautomation.rm.shape
Class RMShapeMouseEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.InputEvent
java.awt.event.MouseEvent
com.inductiveautomation.rm.shape.RMShapeMouseEvent
- All Implemented Interfaces:
- Serializable
The RMShapeMouseEvent is a subclass of MouseEvent which is sent to an RMShape's mouse listeners. It is the same as a
 regular mouse event except for two differences: The shape the action was performed on can be retrieved with
 getShape(), and event point in the shape's coordinate system can be retrieved with getShapePoint().
- See Also:
- 
Field SummaryFields inherited from class java.awt.event.MouseEventBUTTON1, BUTTON2, BUTTON3, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_WHEEL, NOBUTTONFields inherited from class java.awt.event.InputEventALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASKFields inherited from class java.awt.event.ComponentEventCOMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWNFields inherited from class java.awt.AWTEventACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionRMShapeMouseEvent(RMShape aShape, MouseEvent anEvent) Creates a new shape mouse event.
- 
Method SummaryModifier and TypeMethodDescriptionvoidconsume()Overrides MouseEvent version to forward on to encapsulated event.static RMShapeMouseEventReturns the most recently delivered event.Returns the mouse down event.Returns the original mouse event.Returns the event location in shape's parent's coords.doubleReturns the event location in shape's parent's coords.doubleReturns the event location in shape's parent's coords.getPoint()Overrides MouseEvent version to return point in shape coords.Returns the event point in shape coords.getShape()Returns the event shape.Returns the viewer.Returns the event location in viewer coords.intReturns the event location in viewer coords.intReturns the event location in viewer coords.intgetX()Overrides MouseEvent version to return point in shape coords.doublegetX2D()Returns the event point x.intgetY()Overrides MouseEvent version to return point in shape coords.doublegetY2D()Returns the event point y.Methods inherited from class java.awt.event.MouseEventgetButton, getClickCount, getLocationOnScreen, getModifiersEx, getMouseModifiersText, getXOnScreen, getYOnScreen, isPopupTrigger, paramString, translatePointMethods inherited from class java.awt.event.InputEventgetMaskForButton, getModifiers, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDownMethods inherited from class java.awt.event.ComponentEventgetComponentMethods inherited from class java.util.EventObjectgetSource
- 
Constructor Details- 
RMShapeMouseEventCreates a new shape mouse event.
 
- 
- 
Method Details- 
getShapeReturns the event shape.
- 
getViewerReturns the viewer.
- 
getMouseEventReturns the original mouse event.
- 
getX2Dpublic double getX2D()Returns the event point x.
- 
getY2Dpublic double getY2D()Returns the event point y.
- 
getPoint2DReturns the event point in shape coords.
- 
getXpublic int getX()Overrides MouseEvent version to return point in shape coords.- Overrides:
- getXin class- MouseEvent
 
- 
getYpublic int getY()Overrides MouseEvent version to return point in shape coords.- Overrides:
- getYin class- MouseEvent
 
- 
getPointOverrides MouseEvent version to return point in shape coords.- Overrides:
- getPointin class- MouseEvent
 
- 
getParentXpublic double getParentX()Returns the event location in shape's parent's coords.
- 
getParentYpublic double getParentY()Returns the event location in shape's parent's coords.
- 
getParentPointReturns the event location in shape's parent's coords.
- 
getViewerXpublic int getViewerX()Returns the event location in viewer coords.
- 
getViewerYpublic int getViewerY()Returns the event location in viewer coords.
- 
getViewerPointReturns the event location in viewer coords.
- 
getMouseDownEventReturns the mouse down event.
- 
consumepublic void consume()Overrides MouseEvent version to forward on to encapsulated event.- Overrides:
- consumein class- InputEvent
 
- 
getCurrentEventReturns the most recently delivered event.
 
-