org.simbrain.gauge
Class GaugeFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JInternalFrame
                  extended by org.simbrain.gauge.GaugeFrame
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, InternalFrameListener, MenuListener, RootPaneContainer, WindowConstants, NetworkListener

public class GaugeFrame
extends JInternalFrame
implements NetworkListener, InternalFrameListener, ActionListener, MenuListener

GaugeFrame wraps a Gauge object in a Simbrain workspace frame, which also stores information about the variables the Gauge is representing.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JInternalFrame
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String FS
          File system seperator.
 
Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GaugeFrame()
          Default constructor.
GaugeFrame(Workspace ws)
          Instance of gauge frame.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Responds to actions performed.
 void clampChanged()
          Notify listeners of a clamp changed event, when the statu of the "clamp fields" changes.
 void couplingChanged(NetworkEvent e)
          Notify this listener of a CouplingChanged event.
 void exportHigh()
          Export high dimensional data to csv (comma-separated-values).
 void exportLow()
          Export low-dimensional data to csv (comma-separated-values).
(package private)  JMenuItem getClose()
           
(package private)  JMenuItem getExportHigh()
           
(package private)  JMenuItem getExportLow()
           
(package private)  JMenu getFileMenu()
           
(package private)  JMenu getFileOpsMenu()
           
 GaugedVariables getGaugedVars()
           
 GaugePanel getGaugePanel()
           
(package private)  JMenuItem getGeneralPrefs()
           
 String getGenericPath()
           
(package private)  JMenuItem getGraphicsPrefs()
           
(package private)  JMenuItem getHelpItem()
           
(package private)  JMenu getHelpMenu()
           
(package private)  JMenuItem getImportCSV()
           
(package private)  JMenuBar getMb()
           
 String getName()
           
(package private)  JMenuItem getOpen()
           
 String getPath()
           
(package private)  JMenu getPrefsMenu()
           
(package private)  JMenuItem getProjectionPrefs()
           
(package private)  JMenuItem getSave()
           
(package private)  JMenuItem getSaveAs()
           
(package private)  JMenuItem getSetAutozoom()
           
 int getTheHeight()
           
 int getTheWidth()
           
 Workspace getWorkspace()
           
 int getXpos()
           
 int getYpos()
           
 void hasChanged()
          Checks to see if anything has changed and then offers to save if true.
 void importCSV()
          Import data from csv (comma-separated-values) file.
 void init()
          Initializes gauge frame.
 void initBounds()
          For Castor.
 void internalFrameActivated(InternalFrameEvent e)
          Resonds to internal frame activated.
 void internalFrameClosed(InternalFrameEvent e)
          Responds to internal frame closed.
 void internalFrameClosing(InternalFrameEvent e)
          Responds to internal frame closing.
 void internalFrameDeactivated(InternalFrameEvent e)
          Resonds to internal frame deactivated.
 void internalFrameDeiconified(InternalFrameEvent e)
          Resonds to internal frame deiconified.
 void internalFrameIconified(InternalFrameEvent e)
          Responds to internal frame iconified.
 void internalFrameOpened(InternalFrameEvent e)
          Responds to internal frame opened.
 boolean isChangedSinceLastSave()
           
 void menuCanceled(MenuEvent arg0)
          Menu cancelled.
 void menuDeselected(MenuEvent arg0)
          Menu Deslected.
 void menuSelected(MenuEvent arg0)
          Menu selected.
 void networkChanged()
          Notify this listener of a NetworkChanged event.
 void neuronAdded(NetworkEvent e)
          Notify this listener of a Neuron added event.
 void neuronChanged(NetworkEvent e)
          Notify this listener of a NeuronChanged event.
 void neuronRemoved(NetworkEvent e)
          Notify this listener of a Neuron removed event.
 boolean open()
          Shows open file dialog.
 void readGauge(File f)
          Reads gauge files.
 void reset()
          Reset the gauge; used when the object it is gauging is removed.
 void save()
          Saves current gauge.
 void saveAs()
          Opens save file dialog.
 void setChangedSinceLastSave(boolean changedSinceLastSave)
           
(package private)  void setClose(JMenuItem close)
           
(package private)  void setExportHigh(JMenuItem exportHigh)
           
(package private)  void setExportLow(JMenuItem exportLow)
           
(package private)  void setFileMenu(JMenu fileMenu)
           
(package private)  void setFileOpsMenu(JMenu fileOpsMenu)
           
 void setGaugePanel(GaugePanel theGaugePanel)
           
(package private)  void setGeneralPrefs(JMenuItem generalPrefs)
           
(package private)  void setGraphicsPrefs(JMenuItem graphicsPrefs)
           
(package private)  void setHelpItem(JMenuItem helpItem)
           
(package private)  void setHelpMenu(JMenu helpMenu)
           
(package private)  void setImportCSV(JMenuItem importCSV)
           
(package private)  void setMb(JMenuBar mb)
           
 void setName(String name)
           
(package private)  void setOpen(JMenuItem open)
           
 void setPath(String path)
           
(package private)  void setPrefsMenu(JMenu prefsMenu)
           
(package private)  void setProjectionPrefs(JMenuItem projectionPrefs)
           
(package private)  void setSave(JMenuItem save)
           
(package private)  void setSaveAs(JMenuItem saveAs)
           
(package private)  void setSetAutozoom(JMenuItem setAutozoom)
           
 void setTheHeight(int theHeight)
           
 void setTheWidth(int theWidth)
           
 void setVariables(Collection gaugedVars, String networkName)
          Initialize this gauge to a specified set of variables and a network name.
 void setWorkspace(Workspace parent)
           
 void setXpos(int xpos)
           
 void setYpos(int ypos)
           
 void subnetAdded(NetworkEvent e)
          Notify this listener of a subnetwork added event.
 void subnetRemoved(NetworkEvent e)
          Notify this listener of a subnetwork removed event.
 void synapseAdded(NetworkEvent e)
          Notify this listener of a Neuron removed event.
 void synapseChanged(NetworkEvent e)
          Notify this listener of a Neuron removed event.
 void synapseRemoved(NetworkEvent e)
          Notify this listener of a Neuron removed event.
 void update()
          Send state information to gauge.
 void writeGauge(File theFile)
          Saves network information to the specified file.
 
Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, 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
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, 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, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FS

public static final String FS
File system seperator.

Constructor Detail

GaugeFrame

public GaugeFrame()
Default constructor.


GaugeFrame

public GaugeFrame(Workspace ws)
Instance of gauge frame.

Parameters:
ws - Current workspace
Method Detail

init

public void init()
Initializes gauge frame.


actionPerformed

public void actionPerformed(ActionEvent e)
Responds to actions performed.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - Action event

open

public boolean open()
Shows open file dialog.

Returns:
true if directory exisits

save

public void save()
Saves current gauge. Calls saveAs if file has not been saved.


saveAs

public void saveAs()
Opens save file dialog.


reset

public void reset()
Reset the gauge; used when the object it is gauging is removed. TODO: Make network open, close, save events that are listened to?


setVariables

public void setVariables(Collection gaugedVars,
                         String networkName)
Initialize this gauge to a specified set of variables and a network name.

Parameters:
gaugedVars - The gaugedVars to set.
networkName - the name of the network whose variables these are

writeGauge

public void writeGauge(File theFile)
Saves network information to the specified file.

Parameters:
theFile - File to write

readGauge

public void readGauge(File f)
Reads gauge files.

Parameters:
f - Gauge file to read

importCSV

public void importCSV()
Import data from csv (comma-separated-values) file.


exportHigh

public void exportHigh()
Export high dimensional data to csv (comma-separated-values).


exportLow

public void exportLow()
Export low-dimensional data to csv (comma-separated-values).


getGaugedVars

public GaugedVariables getGaugedVars()
Returns:
Set of gauged variables.

update

public void update()
Send state information to gauge.


internalFrameOpened

public void internalFrameOpened(InternalFrameEvent e)
Responds to internal frame opened.

Specified by:
internalFrameOpened in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameClosing

public void internalFrameClosing(InternalFrameEvent e)
Responds to internal frame closing.

Specified by:
internalFrameClosing in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameClosed

public void internalFrameClosed(InternalFrameEvent e)
Responds to internal frame closed.

Specified by:
internalFrameClosed in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameIconified

public void internalFrameIconified(InternalFrameEvent e)
Responds to internal frame iconified.

Specified by:
internalFrameIconified in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameDeiconified

public void internalFrameDeiconified(InternalFrameEvent e)
Resonds to internal frame deiconified.

Specified by:
internalFrameDeiconified in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameActivated

public void internalFrameActivated(InternalFrameEvent e)
Resonds to internal frame activated.

Specified by:
internalFrameActivated in interface InternalFrameListener
Parameters:
e - Internal frame event

internalFrameDeactivated

public void internalFrameDeactivated(InternalFrameEvent e)
Resonds to internal frame deactivated.

Specified by:
internalFrameDeactivated in interface InternalFrameListener
Parameters:
e - Internal frame event

getPath

public String getPath()
Returns:
Returns the path. Used in persistence.

getGenericPath

public String getGenericPath()
Returns:
platform-specific path. Used in persistence.

setPath

public void setPath(String path)
Parameters:
path - The path to set. Used in persistence.

getWorkspace

public Workspace getWorkspace()
Returns:
Returns the parent.

setWorkspace

public void setWorkspace(Workspace parent)
Parameters:
parent - The parent to set.

initBounds

public void initBounds()
For Castor. Turn Component bounds into separate variables.


getXpos

public int getXpos()
Returns:
Returns the xpos.

setXpos

public void setXpos(int xpos)
Parameters:
xpos - The xpos to set.

getYpos

public int getYpos()
Returns:
Returns the ypos.

setYpos

public void setYpos(int ypos)
Parameters:
ypos - The ypos to set.

getTheHeight

public int getTheHeight()
Returns:
Returns the the_height.

setTheHeight

public void setTheHeight(int theHeight)
Parameters:
theHeight - The the_height to set.

getTheWidth

public int getTheWidth()
Returns:
Returns the the_width.

setTheWidth

public void setTheWidth(int theWidth)
Parameters:
theWidth - The the_width to set.

getGaugePanel

public GaugePanel getGaugePanel()
Returns:
Returns the theGaugePanel.

setGaugePanel

public void setGaugePanel(GaugePanel theGaugePanel)
Parameters:
theGaugePanel - The theGaugePanel to set.

getName

public String getName()
Overrides:
getName in class Component
Returns:
Returns the name.

setName

public void setName(String name)
Overrides:
setName in class Component
Parameters:
name - The name to set.

hasChanged

public void hasChanged()
Checks to see if anything has changed and then offers to save if true.


setMb

void setMb(JMenuBar mb)
Parameters:
mb - The mb to set.

getMb

JMenuBar getMb()
Returns:
Returns the mb.

isChangedSinceLastSave

public boolean isChangedSinceLastSave()
Returns:
Has gauge changed since last save.

setChangedSinceLastSave

public void setChangedSinceLastSave(boolean changedSinceLastSave)
Parameters:
changedSinceLastSave - Has gauge changed since last save.

menuCanceled

public void menuCanceled(MenuEvent arg0)
Menu cancelled.

Specified by:
menuCanceled in interface MenuListener
Parameters:
arg0 - Menu event

menuDeselected

public void menuDeselected(MenuEvent arg0)
Menu Deslected.

Specified by:
menuDeselected in interface MenuListener
Parameters:
arg0 - Menu event

menuSelected

public void menuSelected(MenuEvent arg0)
Menu selected.

Specified by:
menuSelected in interface MenuListener
Parameters:
arg0 - Menu event

setFileMenu

void setFileMenu(JMenu fileMenu)
Parameters:
fileMenu - The fileMenu to set.

getFileMenu

JMenu getFileMenu()
Returns:
Returns the fileMenu.

setOpen

void setOpen(JMenuItem open)
Parameters:
open - The open to set.

getOpen

JMenuItem getOpen()
Returns:
Returns the open.

setSave

void setSave(JMenuItem save)
Parameters:
save - The save to set.

getSave

JMenuItem getSave()
Returns:
Returns the save.

setSaveAs

void setSaveAs(JMenuItem saveAs)
Parameters:
saveAs - The saveAs to set.

getSaveAs

JMenuItem getSaveAs()
Returns:
Returns the saveAs.

setFileOpsMenu

void setFileOpsMenu(JMenu fileOpsMenu)
Parameters:
fileOpsMenu - The fileOpsMenu to set.

getFileOpsMenu

JMenu getFileOpsMenu()
Returns:
Returns the fileOpsMenu.

setImportCSV

void setImportCSV(JMenuItem importCSV)
Parameters:
importCSV - The importCSV to set.

getImportCSV

JMenuItem getImportCSV()
Returns:
Returns the importCSV.

setExportLow

void setExportLow(JMenuItem exportLow)
Parameters:
exportLow - The exportLow to set.

getExportLow

JMenuItem getExportLow()
Returns:
Returns the exportLow.

setExportHigh

void setExportHigh(JMenuItem exportHigh)
Parameters:
exportHigh - The exportHigh to set.

getExportHigh

JMenuItem getExportHigh()
Returns:
Returns the exportHigh.

setClose

void setClose(JMenuItem close)
Parameters:
close - The close to set.

getClose

JMenuItem getClose()
Returns:
Returns the close.

setPrefsMenu

void setPrefsMenu(JMenu prefsMenu)
Parameters:
prefsMenu - The prefsMenu to set.

getPrefsMenu

JMenu getPrefsMenu()
Returns:
Returns the prefsMenu.

setProjectionPrefs

void setProjectionPrefs(JMenuItem projectionPrefs)
Parameters:
projectionPrefs - The projectionPrefs to set.

getProjectionPrefs

JMenuItem getProjectionPrefs()
Returns:
Returns the projectionPrefs.

setGraphicsPrefs

void setGraphicsPrefs(JMenuItem graphicsPrefs)
Parameters:
graphicsPrefs - The graphicsPrefs to set.

getGraphicsPrefs

JMenuItem getGraphicsPrefs()
Returns:
Returns the graphicsPrefs.

setGeneralPrefs

void setGeneralPrefs(JMenuItem generalPrefs)
Parameters:
generalPrefs - The generalPrefs to set.

getGeneralPrefs

JMenuItem getGeneralPrefs()
Returns:
Returns the generalPrefs.

setSetAutozoom

void setSetAutozoom(JMenuItem setAutozoom)
Parameters:
setAutozoom - The setAutozoom to set.

getSetAutozoom

JMenuItem getSetAutozoom()
Returns:
Returns the setAutozoom.

setHelpMenu

void setHelpMenu(JMenu helpMenu)
Parameters:
helpMenu - The helpMenu to set.

getHelpMenu

JMenu getHelpMenu()
Returns:
Returns the helpMenu.

setHelpItem

void setHelpItem(JMenuItem helpItem)
Parameters:
helpItem - The helpItem to set.

getHelpItem

JMenuItem getHelpItem()
Returns:
Returns the helpItem.

networkChanged

public void networkChanged()
Description copied from interface: NetworkListener
Notify this listener of a NetworkChanged event.

Specified by:
networkChanged in interface NetworkListener
See Also:
NetworkListener

neuronChanged

public void neuronChanged(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a NeuronChanged event.

Specified by:
neuronChanged in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

neuronAdded

public void neuronAdded(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a Neuron added event.

Specified by:
neuronAdded in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

neuronRemoved

public void neuronRemoved(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a Neuron removed event.

Specified by:
neuronRemoved in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

synapseRemoved

public void synapseRemoved(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a Neuron removed event.

Specified by:
synapseRemoved in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

synapseAdded

public void synapseAdded(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a Neuron removed event.

Specified by:
synapseAdded in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

synapseChanged

public void synapseChanged(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a Neuron removed event.

Specified by:
synapseChanged in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

couplingChanged

public void couplingChanged(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a CouplingChanged event. Pass in a reference to the neuron on which the coupling changed.

Specified by:
couplingChanged in interface NetworkListener
Parameters:
e - Network event
See Also:
NetworkListener

subnetAdded

public void subnetAdded(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a subnetwork added event.

Specified by:
subnetAdded in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

subnetRemoved

public void subnetRemoved(NetworkEvent e)
Description copied from interface: NetworkListener
Notify this listener of a subnetwork removed event.

Specified by:
subnetRemoved in interface NetworkListener
Parameters:
e - event
See Also:
NetworkListener

clampChanged

public void clampChanged()
Description copied from interface: NetworkListener
Notify listeners of a clamp changed event, when the statu of the "clamp fields" changes. TODO: Perhaps later this can be generaliezd to "parameter change" events, if there are more such parameters.

Specified by:
clampChanged in interface NetworkListener
See Also:
NetworkListener