public interface SelectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
backup()
Backs up the selection state, i.e.
|
void |
clearMemory()
Clears the memory of what was cut / copied, so that future paste calls will do nothing.
|
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 nodes 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 that are currently selected.
|
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 |
restore()
Restores the selection state from backup, i.e.
|
void |
selectAll()
Selects all 'selectable' elements (i.e.
|
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.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 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 backup()
The z-ordering of the root nodes of node and joint skins is also backed up.
void restore()
The z-ordering of the root nodes and joints is also restored.
Copyright © 2015 TESIS DYNAware. All Rights Reserved.