public final class MenuCommands
extends java.lang.Object
For SDI mode Swing requires that each window have it's own menu. This means for consistency across windows that a change of state on a menu item in one window's menu must occur in all other window's menus as well (such as checking a check box).
Modifier and Type | Method and Description |
---|---|
static java.util.List<ArcInst> |
getSelectedArcs()
Get list of ArcInsts of what's currently selected by the user,
in the window that has focus.
|
static java.util.List<NodeInst> |
getSelectedNodes()
Get list of NodeInsts of what's currently selected by the user,
in the window that has focus.
|
static java.util.List<Geometric> |
getSelectedObjects(boolean wantNodes,
boolean wantArcs)
Get list of ElectricObjects of what's currently selected by the user,
in the window that has focus.
|
static EMenuBar |
menuBar()
Method to create the pulldown menus.
|
public static EMenuBar menuBar()
public static java.util.List<Geometric> getSelectedObjects(boolean wantNodes, boolean wantArcs)
wantNodes
- true if the list should include nodeswantArcs
- true if the list should include arcspublic static java.util.List<NodeInst> getSelectedNodes()
public static java.util.List<ArcInst> getSelectedArcs()