public interface IHandle
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds(DesignPanel panel)
Return the bounds of this handle, in 2d (zoomed) space.
|
java.lang.String |
getStatusBarText(int inputMask)
Called on mouseover and during drag to get the status bar text for the handle.
|
void |
onClick(int inputMask)
The mouse was clicked within the handle's bounds.
|
void |
onDrag(double dX,
double dY,
int inputMask)
Called while the handle is being dragged.
|
void |
onDragEnd(double dX,
double dY,
int inputMask)
The drag event is complete (mouse has been released).
|
void |
onDragStart(double dX,
double dY,
int inputMask)
The handle has started to be dragged.
|
void |
paintHandle(java.awt.Graphics2D g,
boolean mouseOver,
boolean drag)
Gives the handle a chance to paint itself on the given graphics object.
|
java.lang.String getStatusBarText(int inputMask)
void paintHandle(java.awt.Graphics2D g, boolean mouseOver, boolean drag)
void onDragStart(double dX, double dY, int inputMask)
dX
- The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)dY
- The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)inputMask
- The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx()
.)void onDrag(double dX, double dY, int inputMask)
dX
- The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)dY
- The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)inputMask
- The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx()
.)void onDragEnd(double dX, double dY, int inputMask)
dX
- The distance along the horizontal axis away from the drag starting point. (Unzoomed, logical)dY
- The distance along the vertical axis away from the drag starting point. (Unzoomed, logical)inputMask
- The extended modifiers from the underlying mouse drag (see MouseEvent.getModifiersEx()
.)void onClick(int inputMask)
java.awt.Rectangle getBounds(DesignPanel panel)