| 
 |  | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.graphic.toolkit.EditPointMouseTransformFactory.SplitSegmentTransform
protected class EditPointMouseTransformFactory.SplitSegmentTransform
a mouse-transform that add points to extensible curves
| Constructor Summary | |
|---|---|
| EditPointMouseTransformFactory.SplitSegmentTransform(AbstractCurve target,
                                                     int segIdx,
                                                     Grid grid) | |
| Method Summary | |
|---|---|
|  Cursor | getCursor()Return the cursor for this MouseTransform | 
|  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(Graphics2D g,
      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. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public EditPointMouseTransformFactory.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)| Method Detail | 
|---|
public void start(PEMouseEvent e)
start in interface MouseTransformpublic void process(PEMouseEvent e)
process in interface MouseTransformpublic boolean next(PEMouseEvent e)
next in interface MouseTransformtrue if there's another task in the sequence,
 false if mouse-transform has completed with this
 mouse-event.public String getHelpMessage()
MouseTransform
getHelpMessage in interface MouseTransform
public void paint(Graphics2D g,
                  Rectangle2D allocation,
                  double scale)
paint in interface MouseTransformpublic String toString()
toString in class Objectpublic Cursor getCursor()
MouseTransform
getCursor in interface MouseTransform| 
 |  | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||