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, paintpublic _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 MouseTransformstart in class AbstractMouseTransformpublic java.awt.Cursor getCursor()
MouseTransformpublic void process(PEMouseEvent me)
public boolean next(PEMouseEvent e)
AbstractMouseTransformnext in interface MouseTransformnext in class AbstractMouseTransformpublic java.lang.String getHelpMessage()
MouseTransformpublic java.lang.String toString()
toString in class java.lang.ObjectSubmit a bug : syd@jpicedt.org