All shapes support the following additional properties
Arc
Arrow
Circle
Cross
Donut
Ellipse
Morph
Path
Pin
Polygon
Rays
Rect
RegularPolygon
RoundRect
Star
Text
Triangle
Xpath
GraphicsBuilder can perform 4 area operations. All area operations require at least 2 shapes, and support additional shapes in the same operation.
Add
Intersect
Subtract
Xor
Shape
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 |