public class NetworkPanelDesktop extends NetworkPanel
Applet menus are handled in NetworkMenuBar
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) NetworkDesktopComponent |
component
Reference to Desktop Component.
|
actionManager, DEFAULT_SPACING, neuronClampButton, neuronClampMenuItem, synapseClampButton, synapseClampMenuItem, undoManager
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
NetworkPanelDesktop(NetworkDesktopComponent component,
Network Network)
Construct the desktop extension of network panel.
|
Modifier and Type | Method and Description |
---|---|
void |
applyUserPrefsToNetwork()
Push settings from user preferences to Simbrain objects.
|
(package private) javax.swing.JMenu |
createEditMenu()
Create and return a new Edit menu for this Network panel.
|
javax.swing.JMenu |
createHelpMenu()
Create and return a new Help menu for this Network panel.
|
(package private) javax.swing.JMenu |
createInsertMenu()
Create and return a new Insert menu for this Network panel.
|
javax.swing.JPopupMenu |
createNetworkContextMenu()
This version adds the script menu.
|
javax.swing.JMenu |
createSelectionMenu()
Create a selection JMenu.
|
(package private) javax.swing.JMenu |
createViewMenu()
Create and return a new View menu for this Network panel.
|
GenericFrame |
displayPanel(javax.swing.JPanel panel,
java.lang.String title)
Display a panel in a dialog.
|
NetworkDialog |
getNetworkDialog(NetworkPanel networkPanel)
This version of network dialog allows user to set User Preferences.
|
javax.swing.JPopupMenu |
getNeuronContextMenu(Neuron neuron)
Creates the context menu for neurons.
|
StandardDialog |
getNeuronDialog(java.util.Collection<NeuronNode> nns) |
javax.swing.JMenu |
getNeuronGroupConsumerMenu(NeuronGroup neuronGroup)
Creates the consumer menu for neuron groups.
|
StandardDialog |
getNeuronGroupDialog(NeuronGroupNode node)
Creates a modeless version of the neuron group dialog relative to the
SimbrainDesktop.
|
javax.swing.JMenu |
getNeuronGroupProducerMenu(NeuronGroup neuronGroup)
Creates the producer menu for neuron groups.
|
javax.swing.JPopupMenu |
getSynapseContextMenu(Synapse synapse) |
StandardDialog |
getSynapseDialog(java.util.Collection<SynapseNode> sns) |
javax.swing.JMenu |
getSynapseGroupConsumerMenu(SynapseGroup synapseGroup)
Creates the consumer menu for synapse groups.
|
StandardDialog |
getSynapseGroupDialog(SynapseGroupInteractionBox sgib)
Creates a modeless version of the synapse group dialog relative to the
SimbrainDesktop.
|
javax.swing.JMenu |
getSynapseGroupProducerMenu(SynapseGroup sg)
Creates the producer menu for synapse groups.
|
void |
showSelectedNeuronProperties()
Creates and displays the neuron properties dialog.
|
void |
showSelectedSynapseProperties()
Creates and displays the synapse properties dialog.
|
addInternalMenuBar, addMenuToSynapseGroupNode, addNeuron, addNeuronsToPanel, addSelection, addSelectionListener, alignHorizontal, alignVertical, clearPanel, clearSelection, clearSourceElements, closeNetwork, componentUpdated, contextualDecrementSelectedObjects, contextualIncrementSelectedObjects, copy, createAlignMenu, createEditToolBar, createMainToolBar, createRunToolBar, createSpacingMenu, createToolTip, cut, debugString, decrementSelectedObjects, deleteSelectedObjects, displayPanelInWindow, getActionManager, getAutoZoomMode, getBackgroundColor, getBeginPosition, getCanvas, getContextMenuAlt, getEditMode, getEditToolBar, getEndPosition, getInOutMode, getLastClickedPosition, getLastSelectedNeuron, getMainToolBar, getNetwork, getNeuronNodes, getNudgeAmount, getNumberOfPastes, getObjectNodeMap, getParentNodes, getPasteX, getPasteY, getPrioritiesVisible, getQuickConnector, getRunToolBar, getSelectableNodes, getSelectedModelElements, getSelectedModelNeuronGroups, getSelectedModelNeurons, getSelectedModelSynapseGroups, getSelectedModelSynapses, getSelectedNeuronGroups, getSelectedNeurons, getSelectedScreenElements, getSelectedSynapses, getSelectedText, getSelection, getShowSubnetOutline, getShowTime, getSourceModelGroups, getSourceModelNeurons, getSynapseNodes, getTextHandle, getTextNodes, getUndoManager, getUpdateComplete, getViewGroupNode, getWeightsVisible, getWhereToAdd, groupSelectedObjects, incrementSelectedObjects, initGui, isGuiOn, isRunning, isSelected, isSelectionEmpty, modelCleared, nudge, paste, removeSelectionListener, repaint, resetColors, resetSynapseDiameters, selectAll, setAutoZoomMode, setBackgroundColor, setBeginPosition, setEditMode, setEndPosition, setGuiOn, setHierarchyPanelVisible, setLastClickedPosition, setLastSelectedNeuron, setNetwork, setNudgeAmount, setNumberOfPastes, setPasteDelta, setPasteX, setPasteY, setPrioritiesVisible, setRunning, setSelection, setShowSubnetOutline, setShowTime, setSourceElements, setTitle, setUpdateComplete, setWeightsVisible, showTextPropertyDialog, spaceHorizontal, spaceVertical, syncToModel, toggleSelection, toString, unGroup, updateCursor, updateTime, zoomToFitPage
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
NetworkDesktopComponent component
public NetworkPanelDesktop(NetworkDesktopComponent component, Network Network)
component
- the component level representation of the desktopNetwork
- the neural network modelpublic void applyUserPrefsToNetwork()
javax.swing.JMenu createEditMenu()
javax.swing.JMenu createInsertMenu()
javax.swing.JMenu createViewMenu()
public javax.swing.JMenu createSelectionMenu()
public javax.swing.JMenu createHelpMenu()
public NetworkDialog getNetworkDialog(NetworkPanel networkPanel)
getNetworkDialog
in class NetworkPanel
networkPanel
- network panelpublic javax.swing.JPopupMenu createNetworkContextMenu()
createNetworkContextMenu
in class NetworkPanel
public GenericFrame displayPanel(javax.swing.JPanel panel, java.lang.String title)
NetworkPanel
displayPanel
in class NetworkPanel
panel
- panel to displaytitle
- title for the framepublic javax.swing.JPopupMenu getNeuronContextMenu(Neuron neuron)
NetworkPanel
NetworkPanelDesktop
which adds a
coupling menu.getNeuronContextMenu
in class NetworkPanel
neuron
- neuron which needs a menupublic javax.swing.JPopupMenu getSynapseContextMenu(Synapse synapse)
getSynapseContextMenu
in class NetworkPanel
public StandardDialog getNeuronGroupDialog(NeuronGroupNode node)
getNeuronGroupDialog
in class NetworkPanel
node
- the neuron group node to display the dialog forpublic StandardDialog getSynapseGroupDialog(SynapseGroupInteractionBox sgib)
getSynapseGroupDialog
in class NetworkPanel
sgib
- must be a synapse group interaction box because SynapseGroupBidirectional
does not inhereit from SynapseGroupNode and the interaction box is the only visual
and interactable object with a 1:1 correspondence to synapse groups.public StandardDialog getNeuronDialog(java.util.Collection<NeuronNode> nns)
getNeuronDialog
in class NetworkPanel
public StandardDialog getSynapseDialog(java.util.Collection<SynapseNode> sns)
getSynapseDialog
in class NetworkPanel
public void showSelectedNeuronProperties()
showSelectedNeuronProperties
in class NetworkPanel
public void showSelectedSynapseProperties()
showSelectedSynapseProperties
in class NetworkPanel
public javax.swing.JMenu getNeuronGroupProducerMenu(NeuronGroup neuronGroup)
NetworkPanel
NetworkPanelDesktop
which has access
to workspace level coupling menus.getNeuronGroupProducerMenu
in class NetworkPanel
neuronGroup
- the neuron group that can produce vectors for
couplings.public javax.swing.JMenu getNeuronGroupConsumerMenu(NeuronGroup neuronGroup)
NetworkPanel
NetworkPanelDesktop
which has access
to workspace level coupling menus.getNeuronGroupConsumerMenu
in class NetworkPanel
neuronGroup
- the neuron group that can consume vectors for
couplings.public javax.swing.JMenu getSynapseGroupProducerMenu(SynapseGroup sg)
NetworkPanel
NetworkPanelDesktop
which has access
to workspace level coupling menus.getSynapseGroupProducerMenu
in class NetworkPanel
sg
- the neuron group that can produce vectors for
couplings.public javax.swing.JMenu getSynapseGroupConsumerMenu(SynapseGroup synapseGroup)
NetworkPanel
NetworkPanelDesktop
which has access
to workspace level coupling menus.getSynapseGroupConsumerMenu
in class NetworkPanel
synapseGroup
- the neuron group that can consume vectors for
couplings.