public interface SelectionManager
| Modifier and Type | Method and Description |
|---|---|
void |
backup()
Backs up the selection state, i.e. what nodes and joints are currently selected.
|
void |
copy()
Copies the current selection.
|
void |
cut()
Cuts the current selection.
|
void |
cut(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> appender)
Cuts the current selection.
|
void |
deleteSelection()
Deletes all nodes that are currently selected.
|
void |
deleteSelection(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> handler)
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(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> appender)
Pastes the recently cut or copied selection.
|
void |
restore()
Restores the selection state from backup, i.e. reselects nodes and joints that were selected at the last backup.
|
void |
selectAll()
Selects all 'selectable' elements (i.e. nodes and joints) in the editor.
|
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(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> appender)
Additionally calls the given handler method for the compound command that removed the nodes.
appender - a CommandAppender to be calledvoid copy()
void paste()
void paste(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> appender)
Additionally calls the given method for the compound command that pasted the nodes.
appender - a CommandAppender to be calledvoid selectAll()
void deleteSelection()
void deleteSelection(CommandAppender<java.util.List<de.tesis.dynaware.grapheditor.model.GNode>> handler)
Additionally calls the given method for the compound command that did the deletion.
handler - a CommandAppender to be calledvoid 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 © 2014 TESIS DYNAware. All Rights Reserved.