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, paintHandlepublic java.lang.String getStatusBarText(int inputMask)
IHandlegetStatusBarText in interface IHandlegetStatusBarText in class AbstractShapeHandleprotected java.awt.Shape newDrawShape()
AbstractShapeHandlenewDrawShape in class AbstractShapeHandlepublic void paintHandle(java.awt.Graphics2D g,
boolean mouseOver,
boolean drag)
IHandleprotected void position(java.awt.geom.Point2D.Double location)
AbstractShapeHandleposition in class AbstractShapeHandlepublic void onDragStart(double dX,
double dY,
int inputMask)
IHandleonDragStart in interface IHandleonDragStart in class AbstractShapeHandledX - 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)
IHandleonDragEnd in interface IHandleonDragEnd in class AbstractShapeHandledX - 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)
IHandleonDrag in interface IHandleonDrag in class AbstractShapeHandledX - 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().)