Package jpicedt.graphic.toolkit
Class EditElementMouseTransformFactory.SelectElementsInAreaTransform
- java.lang.Object
-
- jpicedt.graphic.toolkit.AbstractMouseTransformFactory.SelectAreaTransform
-
- jpicedt.graphic.toolkit.EditElementMouseTransformFactory.SelectElementsInAreaTransform
-
- All Implemented Interfaces:
MouseTransform
- Enclosing class:
- EditElementMouseTransformFactory
protected class EditElementMouseTransformFactory.SelectElementsInAreaTransform extends AbstractMouseTransformFactory.SelectAreaTransform
a mouse-transform that selects all elements inside a rectangle dragged by the user
-
-
Constructor Summary
Constructors Constructor Description SelectElementsInAreaTransform(Element target, boolean addToSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHelpMessage()Return a help-message for the UI, that makes sense with this transform.booleannext(PEMouseEvent e)Called when the mouse is released.voidstart(PEMouseEvent e)called by mousePressedjava.lang.StringtoString()-
Methods inherited from class jpicedt.graphic.toolkit.AbstractMouseTransformFactory.SelectAreaTransform
getClipRectangle, getCursor, getSelectionRectangle, paint, process
-
-
-
-
Constructor Detail
-
SelectElementsInAreaTransform
public SelectElementsInAreaTransform(Element target, boolean addToSelection)
- Parameters:
target- if non-null, this element will be selected by a call to "start", before starting to draw the selection rectangle (click on a non-selected element)
-
-
Method Detail
-
start
public void start(PEMouseEvent e)
called by mousePressed- Specified by:
startin interfaceMouseTransform- Overrides:
startin classAbstractMouseTransformFactory.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:
nextin interfaceMouseTransform- Overrides:
nextin classAbstractMouseTransformFactory.SelectAreaTransform- Returns:
- true if there's another task in the sequence, false if mouse-transform has completed with this mouse-event.
-
getHelpMessage
public java.lang.String getHelpMessage()
Description copied from interface:MouseTransformReturn a help-message for the UI, that makes sense with this transform.- Specified by:
getHelpMessagein interfaceMouseTransform- Overrides:
getHelpMessagein classAbstractMouseTransformFactory.SelectAreaTransform- Returns:
- a help-message for the UI, that makes sense with this transform.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractMouseTransformFactory.SelectAreaTransform- Returns:
- a textual representation of this transform for debugging purpose
-
-