protected class EditElementMouseTransformFactory._MoveElementTransform extends AbstractMouseTransform
Constructor and Description |
---|
_MoveElementTransform(BranchElement target,
int anchorChildIndex,
PicPoint clickPt,
Grid grid) |
_MoveElementTransform(Element target,
PicPoint clickPt,
Grid grid) |
Modifier and Type | Method and Description |
---|---|
java.awt.Cursor |
getCursor()
Return the cursor for this MouseTransform
|
java.lang.String |
getHelpMessage()
Return a help-message for the UI, that makes sense with this transform.
|
boolean |
next(PEMouseEvent e)
Called by mouseReleased.
This implementation set the clone's parent and view to null so as to make it elligible for gc. |
void |
process(PEMouseEvent me)
Called when the mouse is dragged.
|
void |
start(PEMouseEvent e)
Called when the mouse is pressed.
Create a clone of the clickedElement given as the parameter in the constructor. |
java.lang.String |
toString() |
getClone, getTarget, paint
public _MoveElementTransform(BranchElement target, int anchorChildIndex, PicPoint clickPt, Grid grid)
target
- the selection-handler upon which this transform acts (globally)anchorChildIndex
- index of target's child that will serve as
the reference-child for grid alignment ; if null, target is used instead ;clickPt
- public void start(PEMouseEvent e)
start
in interface MouseTransform
start
in class AbstractMouseTransform
public java.awt.Cursor getCursor()
MouseTransform
public void process(PEMouseEvent me)
public boolean next(PEMouseEvent e)
AbstractMouseTransform
next
in interface MouseTransform
next
in class AbstractMouseTransform
public java.lang.String getHelpMessage()
MouseTransform
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug : syd@jpicedt.org