protected class RotationControls.RotationAnchorHandle extends AbstractShapeHandle
drawShape
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStatusBarText(int inputMask)
Called on mouseover and during drag to get the status bar text for the handle.
|
protected java.awt.Shape |
newDrawShape()
Called to create a new draw shape.
|
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.
|
protected void |
position(java.awt.geom.Point2D.Double location)
Updates the argument location with the correct position of this handle's anchor point.
|
getBounds, onClick, paintHandle
public java.lang.String getStatusBarText(int inputMask)
IHandle
getStatusBarText
in interface IHandle
getStatusBarText
in class AbstractShapeHandle
protected java.awt.Shape newDrawShape()
AbstractShapeHandle
newDrawShape
in class AbstractShapeHandle
public void paintHandle(java.awt.Graphics2D g, boolean mouseOver, boolean drag)
IHandle
protected void position(java.awt.geom.Point2D.Double location)
AbstractShapeHandle
position
in class AbstractShapeHandle
public void onDragStart(double dX, double dY, int inputMask)
IHandle
onDragStart
in interface IHandle
onDragStart
in class AbstractShapeHandle
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()
.)public void onDragEnd(double dX, double dY, int inputMask)
IHandle
onDragEnd
in interface IHandle
onDragEnd
in class AbstractShapeHandle
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()
.)public void onDrag(double dX, double dY, int inputMask)
IHandle
onDrag
in interface IHandle
onDrag
in class AbstractShapeHandle
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()
.)