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 MouseTransform
public java.awt.Cursor getCursor()
MouseTransform
getCursor
in interface MouseTransform
public void process(PEMouseEvent me)
process
in interface MouseTransform
public boolean next(PEMouseEvent e)
MouseTransform
next
in interface MouseTransform
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
MouseTransform
paint
in interface MouseTransform
public java.lang.String getHelpMessage()
MouseTransform
getHelpMessage
in interface MouseTransform
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug : syd@jpicedt.org