Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added event info

...

Add
Intersect
Subtract
Xor
Shape

Events

All shapes may receive event notifications if the appropriate event handler is declared. The object passed as parameter to each handler is a GraphicsInputEvent, which wraps the original swing event, it has the following properties

source

the component where the event occurred, typically a GraphicsPanel

event

the wrapped event

sourceShape

the shape where the event was triggered

Event

Notes

mouseEntered

called when the mouse enters the bounds of a shape

mouseExited

called when the mouse exits the bounds of a shape

mouseClicked

called when the mouse is clicked within the bounds of a shape

mousePresed

called when the mouse is pressed within the bounds of a shape

mouseReleased

called when the mouse is released within the bounds of a shape

mouseMoved

called when the mouse is moved within the bounds of a shape

mouseDragged

called when the mouse is dragged within the bounds of a shape

mouseWheelMoved

called when the mouse's wheel is moved