protected class EditElementMouseTransformFactory.MoveElementTransform extends java.lang.Object implements MouseTransform
| 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 when the left mouse-button changes state.
|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
Allows the MouseTransform to do specific graphic rendering when it's operating.
|
void |
process(PEMouseEvent me)
Called when the mouse is dragged.
|
void |
start(PEMouseEvent e)
Called when the mouse is pressed.
|
java.lang.String |
toString() |
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 MouseTransformpublic java.awt.Cursor getCursor()
MouseTransformgetCursor in interface MouseTransformpublic void process(PEMouseEvent me)
process in interface MouseTransformpublic boolean next(PEMouseEvent e)
MouseTransformnext in interface MouseTransformpublic void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
MouseTransformpaint in interface MouseTransformpublic java.lang.String getHelpMessage()
MouseTransformgetHelpMessage in interface MouseTransformpublic java.lang.String toString()
toString in class java.lang.ObjectSubmit a bug : syd@jpicedt.org