protected class EditElementMouseTransformFactory.MoveControlPointTransform extends java.lang.Object implements MouseTransform
| Constructor and Description |
|---|
MoveControlPointTransform(Element target,
int pointIndex,
EditPointConstraint constraint,
java.lang.String helpMessage,
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 mouse is released.
|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
Does nothing.
|
void |
process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
start(PEMouseEvent e)
Called when the mouse is pressed.
|
java.lang.String |
toString() |
public MoveControlPointTransform(Element target, int pointIndex, EditPointConstraint constraint, java.lang.String helpMessage, Grid grid)
target - the element upon which this transform will actpointIndex - index of the Element's point that will be movedgrid - the Grid instance used for alignment (if it's snap-on)constraint - the geometrical constraint to be used when moving control-points ; may be nullhelpMessage - if non-null, this will be displayed on mouse-move events instead of the default help-message
for this mouse-transform.jpicedt.graphic.model.Element.setPointpublic void start(PEMouseEvent e)
start in interface MouseTransformpublic void process(PEMouseEvent e)
process in interface MouseTransformpublic boolean next(PEMouseEvent e)
next in interface MouseTransformpublic void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
paint in interface MouseTransformpublic java.lang.String getHelpMessage()
MouseTransformgetHelpMessage in interface MouseTransformpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.Cursor getCursor()
MouseTransformgetCursor in interface MouseTransformPicGroup, returns a cursor according to
pointIndex.Submit a bug : syd@jpicedt.org