public class ResizeHandler extends Handler
| Modifier and Type | Class and Description |
|---|---|
class |
ResizeHandler.AdjustLocation
Update based on ratios/dimensions.
|
class |
ResizeHandler.RelativeLocation
Retrieve positional locations for every element within selected group.
|
NoAnchor, NorthEastAnchor, NorthWestAnchor, SouthEastAnchor, SouthWestAnchor| Constructor and Description |
|---|
ResizeHandler(Model model,
DrawingPalette view) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dragAnchor(java.awt.Point start,
int modifiers,
Element elt,
java.awt.Point current)
Act on the anchor with mouse down.
|
boolean |
startAnchor(java.awt.Point start,
int modifiers,
Element elt,
int anchor)
Record where the starting point is.
|
complete, completeAnchor, drag, getNext, isInterested, move, paint, setNext, startpublic ResizeHandler(Model model, DrawingPalette view)
public boolean startAnchor(java.awt.Point start,
int modifiers,
Element elt,
int anchor)
startAnchor in interface IActionInterfacestartAnchor in class Handlerstart - start an anchor at this mouse locationmodifiers - keyboard modifiers in effectelt - affected elementanchor - initiating anchor index positionpublic boolean dragAnchor(java.awt.Point start,
int modifiers,
Element elt,
java.awt.Point current)
IActionInterfacedragAnchor in interface IActionInterfacedragAnchor in class Handlerstart - mouse location where action startedmodifiers - keyboard modifiers in effectelt - affected elementcurrent - current mouse location