Package org.eclipse.draw2d
Class MouseEvent
java.lang.Object
java.util.EventObject
org.eclipse.draw2d.InputEvent
org.eclipse.draw2d.MouseEvent
- All Implemented Interfaces:
- Serializable
An event caused by the user interacting with the mouse.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe button that was pressed or released: {1, 2, 3}.intThe X coordinate of the mouse event.intThe Y coordinate of the mouse event.Fields inherited from class org.eclipse.draw2d.InputEventALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFTFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionMouseEvent(int x, int y, EventDispatcher dispatcher, IFigure f, int button, int stateMask) Deprecated.MouseEvent(EventDispatcher dispatcher, IFigure source, MouseEvent me) Constructs a new MouseEvent.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.InputEventconsume, getState, isConsumedMethods inherited from class java.util.EventObjectgetSource
- 
Field Details- 
xpublic int xThe X coordinate of the mouse event.
- 
ypublic int yThe Y coordinate of the mouse event.
- 
buttonpublic int buttonThe button that was pressed or released: {1, 2, 3}.
 
- 
- 
Constructor Details- 
MouseEventConstructs a new MouseEvent.- Parameters:
- dispatcher- the event dispatcher
- source- the source of the event
- me- an SWT mouse event used to supply the state mask, button and position
- Since:
- 3.7
 
- 
MouseEventDeprecated.Constructor for MouseEvent.- Parameters:
- x-
- y-
- dispatcher-
- f-
- button-
- stateMask-
- Since:
- 3.6
 
 
- 
- 
Method Details- 
getLocation- Returns:
- the location of this mouse event
 
- 
toString- Overrides:
- toStringin class- EventObject
- See Also:
 
 
- 
MouseEvent(EventDispatcher, IFigure, org.eclipse.swt.events.MouseEvent)instead.