|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaapo.projectmanager.command.AbstractEdit
kaapo.projectmanager.command.SelectionEdit
public class SelectionEdit
An Edit
that selects DiagramComponentWrappers
on the given {x,y}-point or in a rectangular area created from two {x,y}-points.
When only one point is given the first DiagramComponent that contains the given coordinate is selected.
When an area is given in form of the two points all the DiagramComponents that are in that area are selected.
After the selection is made an instance of the Selection
class is created and it is given to ProjectManager
for keeping.
Constructor Summary | |
---|---|
SelectionEdit()
resets the selection to empty |
|
SelectionEdit(DiagramComponentWrapper dc)
constructs an edit with a given diagramocomponent |
|
SelectionEdit(List<DiagramComponentWrapper> dcs)
constructs an edit with the given diagram components |
|
SelectionEdit(Point2D point)
constructs an edit with a single assigned point |
|
SelectionEdit(Point2D startPoint,
Point2D endPoint)
constructs an edit with an area |
Method Summary | |
---|---|
void |
execute(ProjectManager pm)
Execution of this Edit is done in this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionEdit()
public SelectionEdit(Point2D point)
point
- the checked pointpublic SelectionEdit(Point2D startPoint, Point2D endPoint)
startPoint
- the staring point of the selection areaendPoint
- the ending point of the selection areapublic SelectionEdit(DiagramComponentWrapper dc)
dc
- the DiagramComponent
selected from a tree or such.public SelectionEdit(List<DiagramComponentWrapper> dcs)
dcs
- the DiagramComponents
selected from a tree or such.Method Detail |
---|
public void execute(ProjectManager pm) throws EditFailedException
pm
- the ProjectManager the Edit is executed in
EditFailedException
Edit.execute(ProjectManager)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |