protected abstract class ScaleControls.AbstractResizeHandle extends AbstractShapeHandle
| Modifier and Type | Field and Description |
|---|---|
protected ShapePaint |
hoverPaint |
protected ShapePaint |
normalPaint |
drawShape| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResizeHandle(int side) |
| 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.
|
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.
|
getBounds, newDrawShape, onClick, paintHandle, positionprotected ShapePaint normalPaint
protected ShapePaint hoverPaint
public java.lang.String getStatusBarText(int inputMask)
IHandlegetStatusBarText in interface IHandlegetStatusBarText 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 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().)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 paintHandle(java.awt.Graphics2D g,
boolean mouseOver,
boolean drag)
IHandle