public interface SelectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearMemory()
Clears the memory of what was cut / copied, so that future paste calls will do nothing.
|
void |
clearSelection()
Clears the selection, i.e.
|
void |
copy()
Copies the current selection.
|
void |
cut()
Cuts the current selection.
|
void |
cut(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Cuts the current selection.
|
void |
deleteSelection()
Deletes all elements that are currently selected.
|
void |
deleteSelection(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Deletes all nodes and connections that are currently selected.
|
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GConnection> |
getSelectedConnections()
Gets the observable list of currently-selected connections.
|
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GJoint> |
getSelectedJoints()
Gets the observable list of currently-selected joints.
|
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GNode> |
getSelectedNodes()
Gets the observable list of currently-selected nodes.
|
void |
paste()
Pastes the recently cut or copied selection.
|
void |
paste(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Pastes the recently cut or copied selection.
|
void |
selectAll()
Selects all selectable elements (nodes, joints, and connections) in the graph editor.
|
void |
selectAllConnections()
Selects all connections in the graph editor.
|
void |
selectAllJoints()
Selects all joints in the graph editor.
|
void |
selectAllNodes()
Selects all nodes in the graph editor.
|
void |
setConnectionSelectionPredicate(java.util.function.BiPredicate<GConnectionSkin,javafx.geometry.Rectangle2D> connectionPredicate)
Sets an optional predicate to be called when the selection-box changes to see if connections should be selected.
|
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GNode> getSelectedNodes()
This list is read-only. Nodes should be selected via their skin class.
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GConnection> getSelectedConnections()
This list is read-only. Connections should be selected via their skin class.
javafx.collections.ObservableList<de.tesis.dynaware.grapheditor.model.GJoint> getSelectedJoints()
This list is read-only. Joints should be selected via their skin class.
void cut()
void cut(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Additionally calls the given method for the compound command that removed the nodes.
consumer - a consumer to append additional commands to this onevoid copy()
void paste()
void paste(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Additionally calls the given method for the compound command that pasted the nodes.
consumer - a consumer to append additional commands to this onevoid clearMemory()
void selectAll()
void selectAllNodes()
void selectAllJoints()
void selectAllConnections()
void clearSelection()
void deleteSelection()
void deleteSelection(java.util.function.BiConsumer<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>,org.eclipse.emf.common.command.CompoundCommand> consumer)
Additionally calls the given method for the compound command that did the deletion.
consumer - a consumer to append additional commands to this onevoid setConnectionSelectionPredicate(java.util.function.BiPredicate<GConnectionSkin,javafx.geometry.Rectangle2D> connectionPredicate)
The predicate should return true if the connection is inside the selection box. Setting a null predicate means no connections will be selected by the selection-box. This is the default behaviour.
connectionPredicate - a predicate that checks if a connection is inside the selection-boxCopyright © 2015 TESIS DYNAware. All Rights Reserved.