Package doodlepad
Interface ShapeMouseListener
public interface ShapeMouseListener
The interface to be implemented when handling ShapeMouseListener events.
-
Method Summary
Modifier and TypeMethodDescriptiongetShape()
Get access to the implementing Shapevoid
mouseClicked
(double x, double y, int button) The mouseClicked method is invoked by PadMouseListenersvoid
mouseDoubleClicked
(double x, double y, int button) The mouseDoubleClicked method is invoked by PadMouseListenersvoid
mouseDragged
(double x, double y, int button) The mouseDragged method is invoked by ShapeMouseListenervoid
mouseEntered
(double x, double y, int button) The mouseEntered method is invoked by PadMouseListenersvoid
mouseExited
(double x, double y, int button) The mouseExited method is invoked by PadMouseListenersvoid
mouseMoved
(double x, double y, int button) The mouseMoved method is invoked by ShapeMouseListenervoid
mousePressed
(double x, double y, int button) The mousePressed method is invoked by ShapeMouseListenervoid
mouseReleased
(double x, double y, int button) The mouseReleased method is invoked by ShapeMouseListener
-
Method Details
-
getShape
Shape getShape()Get access to the implementing Shape- Returns:
- The Shape that implements the interface.
-
mousePressed
void mousePressed(double x, double y, int button) The mousePressed method is invoked by ShapeMouseListener- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseReleased
void mouseReleased(double x, double y, int button) The mouseReleased method is invoked by ShapeMouseListener- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseMoved
void mouseMoved(double x, double y, int button) The mouseMoved method is invoked by ShapeMouseListener- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseDragged
void mouseDragged(double x, double y, int button) The mouseDragged method is invoked by ShapeMouseListener- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseClicked
void mouseClicked(double x, double y, int button) The mouseClicked method is invoked by PadMouseListeners- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseDoubleClicked
void mouseDoubleClicked(double x, double y, int button) The mouseDoubleClicked method is invoked by PadMouseListeners- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseEntered
void mouseEntered(double x, double y, int button) The mouseEntered method is invoked by PadMouseListeners- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-
mouseExited
void mouseExited(double x, double y, int button) The mouseExited method is invoked by PadMouseListeners- Parameters:
x
- x-coordinate of eventy
- y-coordinate of eventbutton
- button pressed during event
-