public class MechModelEditor extends EditorBase
DISABLED, EXCLUSIVE
Constructor and Description |
---|
MechModelEditor(Main main,
EditorManager editManager) |
Modifier and Type | Method and Description |
---|---|
void |
addActions(EditActionMap actions,
SelectionManager selManager)
Adds editing actions that can be provided by this editor, for
a given selection context, to an action map.
|
void |
applyAction(java.lang.String actionCommand,
java.util.LinkedList<ModelComponent> selection,
java.awt.Rectangle popupBounds) |
boolean |
containsCollidableSelection(java.util.LinkedList<ModelComponent> selection)
Returns true if the selection list contains a set of components
& for which collisions can be set.
|
static MechModel |
lowestCommonModel(java.util.LinkedList<? extends ModelComponent> comps) |
containsDoubleSelection, containsMultipleCommonParentSelection, containsMultipleSelection, containsSingleSelection
public MechModelEditor(Main main, EditorManager editManager)
public static MechModel lowestCommonModel(java.util.LinkedList<? extends ModelComponent> comps)
public boolean containsCollidableSelection(java.util.LinkedList<ModelComponent> selection)
public void addActions(EditActionMap actions, SelectionManager selManager)
EditorBase
addActions
in class EditorBase
actions
- action map to which actions are appended.selManager
- used to query the current selection contextpublic void applyAction(java.lang.String actionCommand, java.util.LinkedList<ModelComponent> selection, java.awt.Rectangle popupBounds)
applyAction
in class EditorBase