jpicedt.graphic.toolkit
Class EditPointMouseTransformFactory.SelectPointsInAreaTransform
java.lang.Object
jpicedt.graphic.toolkit.AbstractMouseTransformFactory.SelectAreaTransform
jpicedt.graphic.toolkit.EditPointMouseTransformFactory.SelectPointsInAreaTransform
- All Implemented Interfaces:
- MouseTransform
- Enclosing class:
- EditPointMouseTransformFactory
protected class EditPointMouseTransformFactory.SelectPointsInAreaTransform
- extends AbstractMouseTransformFactory.SelectAreaTransform
a mouse-transform that selects all elements inside a rectangle dragged by the user
EditPointMouseTransformFactory.SelectPointsInAreaTransform
public EditPointMouseTransformFactory.SelectPointsInAreaTransform(boolean addToSelection)
- Parameters:
addToSelection - if true, selection of points is incremental.
EditPointMouseTransformFactory.SelectPointsInAreaTransform
public EditPointMouseTransformFactory.SelectPointsInAreaTransform(HitInfo.Point hip,
boolean addToSelection)
- Parameters:
addToSelection - if true, selection of points is incremental.hip - if non-null, indices contained therein will be selected before
starting to draw the selection rectangle (click on an Element's point)
start
public void start(PEMouseEvent e)
- called by mousePressed
- Specified by:
start in interface MouseTransform- Overrides:
start in class AbstractMouseTransformFactory.SelectAreaTransform
next
public boolean next(PEMouseEvent e)
- Called when the mouse is released. Selects every elements inside the selection area,
including the element being currently under the cursor.
- Specified by:
next in interface MouseTransform- Overrides:
next in class AbstractMouseTransformFactory.SelectAreaTransform
- Returns:
true if there's another task in the sequence,
false if mouse-transform has completed with this
mouse-event.
getHelpMessage
public String getHelpMessage()
- Description copied from interface:
MouseTransform
- Return a help-message for the UI, that makes sense with this transform.
- Specified by:
getHelpMessage in interface MouseTransform- Overrides:
getHelpMessage in class AbstractMouseTransformFactory.SelectAreaTransform
- Returns:
- a help-message for the UI, that makes sense with this transform.
toString
public String toString()
- Overrides:
toString in class AbstractMouseTransformFactory.SelectAreaTransform
- Returns:
- a textual representation of this transform for debugging purpose
Submit a bug : syd@jpicedt.org