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, position
protected ShapePaint normalPaint
protected ShapePaint hoverPaint
public java.lang.String getStatusBarText(int inputMask)
IHandle
getStatusBarText
in interface IHandle
getStatusBarText
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 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()
.)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 paintHandle(java.awt.Graphics2D g, boolean mouseOver, boolean drag)
IHandle