protected class EditPointMouseTransformFactory.SplitSegmentTransform extends java.lang.Object implements MouseTransform
Constructor and Description |
---|
SplitSegmentTransform(AbstractCurve target,
int segIdx,
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)
Allows the MouseTransform to do specific graphic rendering when it's operating.
|
void |
process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
start(PEMouseEvent e)
Called when the mouse is pressed for the first time.
|
java.lang.String |
toString() |
public SplitSegmentTransform(AbstractCurve target, int segIdx, Grid grid)
target
- the element upon which is transform will actsegIdx
- index of the segment where the new point is to be inserted.grid
- the Grid instance used for alignment (if it's snap-on)public void start(PEMouseEvent e)
start
in interface MouseTransform
public void process(PEMouseEvent e)
process
in interface MouseTransform
public boolean next(PEMouseEvent e)
next
in interface MouseTransform
public java.lang.String getHelpMessage()
MouseTransform
getHelpMessage
in interface MouseTransform
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
paint
in interface MouseTransform
public java.lang.String toString()
toString
in class java.lang.Object
public java.awt.Cursor getCursor()
MouseTransform
getCursor
in interface MouseTransform
Submit a bug : syd@jpicedt.org