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:
- java.io.Serializable
 
 public class RMShapeMouseEvent extends java.awt.event.MouseEventThe 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:
- Serialized Form
 
- 
- 
Field Summary- 
Fields 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, NOBUTTON
 - 
Fields 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_MASK
 - 
Fields inherited from class java.awt.event.ComponentEventCOMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
 - 
Fields 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_MASK
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMShapeMouseEvent(RMShape aShape, java.awt.event.MouseEvent anEvent)Creates a new shape mouse event.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()Overrides MouseEvent version to forward on to encapsulated event.static RMShapeMouseEventgetCurrentEvent()Returns the most recently delivered event.RMShapeMouseEventgetMouseDownEvent()Returns the mouse down event.java.awt.event.MouseEventgetMouseEvent()Returns the original mouse event.RMPointgetParentPoint()Returns the event location in shape's parent's coords.doublegetParentX()Returns the event location in shape's parent's coords.doublegetParentY()Returns the event location in shape's parent's coords.java.awt.PointgetPoint()Overrides MouseEvent version to return point in shape coords.RMPointgetPoint2D()Returns the event point in shape coords.RMShapegetShape()Returns the event shape.RMViewergetViewer()Returns the viewer.java.awt.PointgetViewerPoint()Returns the event location in viewer coords.intgetViewerX()Returns the event location in viewer coords.intgetViewerY()Returns 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, translatePoint
 
- 
 
- 
- 
- 
Constructor Detail- 
RMShapeMouseEventpublic RMShapeMouseEvent(RMShape aShape, java.awt.event.MouseEvent anEvent) Creates a new shape mouse event.
 
- 
 - 
Method Detail- 
getShapepublic RMShape getShape() Returns the event shape.
 - 
getViewerpublic RMViewer getViewer() Returns the viewer.
 - 
getMouseEventpublic java.awt.event.MouseEvent getMouseEvent() Returns the original mouse event.
 - 
getX2Dpublic double getX2D() Returns the event point x.
 - 
getY2Dpublic double getY2D() Returns the event point y.
 - 
getPoint2Dpublic RMPoint getPoint2D() Returns the event point in shape coords.
 - 
getXpublic int getX() Overrides MouseEvent version to return point in shape coords.- Overrides:
- getXin class- java.awt.event.MouseEvent
 
 - 
getYpublic int getY() Overrides MouseEvent version to return point in shape coords.- Overrides:
- getYin class- java.awt.event.MouseEvent
 
 - 
getPointpublic java.awt.Point getPoint() Overrides MouseEvent version to return point in shape coords.- Overrides:
- getPointin class- java.awt.event.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.
 - 
getParentPointpublic RMPoint getParentPoint() Returns 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.
 - 
getViewerPointpublic java.awt.Point getViewerPoint() Returns the event location in viewer coords.
 - 
getMouseDownEventpublic RMShapeMouseEvent getMouseDownEvent() Returns the mouse down event.
 - 
consumepublic void consume() Overrides MouseEvent version to forward on to encapsulated event.- Overrides:
- consumein class- java.awt.event.InputEvent
 
 - 
getCurrentEventpublic static RMShapeMouseEvent getCurrentEvent() Returns the most recently delivered event.
 
- 
 
-