cytoscape.view
Class NetworkViewManager

java.lang.Object
  extended by cytoscape.view.NetworkViewManager
All Implemented Interfaces:
WindowFocusListener, PropertyChangeListener, EventListener, ChangeListener, InternalFrameListener

public class NetworkViewManager
extends Object
implements PropertyChangeListener, InternalFrameListener, WindowFocusListener, ChangeListener


Field Summary
protected  CytoscapeDesktop cytoscapeDesktop
           
protected static int frame_count
           
protected  SwingPropertyChangeSupport pcs
           
protected  int VIEW_TYPE
           
 
Constructor Summary
NetworkViewManager(CytoscapeDesktop desktop)
           
NetworkViewManager(CytoscapeDesktop desktop, int view_type)
          Constructor for overiding the default Desktop view type
 
Method Summary
protected  void createContainer(CyNetworkView view)
          Contains a CyNetworkView according to the view type of this NetworkViewManager
 void firePropertyChange(String property_type, Object old_value, Object new_value)
          Fires a PropertyChangeEvent
 JDesktopPane getDesktopPane()
           
 SwingPropertyChangeSupport getSwingPropertyChangeSupport()
           
 JTabbedPane getTabbedPane()
           
protected  void initialize()
           
 void internalFrameActivated(InternalFrameEvent e)
          For Internal Frames
 void internalFrameClosed(InternalFrameEvent e)
           
 void internalFrameClosing(InternalFrameEvent e)
           
 void internalFrameDeactivated(InternalFrameEvent e)
           
 void internalFrameDeiconified(InternalFrameEvent e)
           
 void internalFrameIconified(InternalFrameEvent e)
           
 void internalFrameOpened(InternalFrameEvent e)
           
 void propertyChange(PropertyChangeEvent e)
          This handles all of the incoming PropertyChangeEvents.
protected  void removeView(CyNetworkView view)
           
protected  void setFocus(String network_id)
          Sets the focus of the passed network, if possible The Network ID corresponds to the CyNetworkView.getNetwork().getIdentifier()
 void stateChanged(ChangeEvent e)
          For Tabbed Panes
 void updateNetworkTitle(CyNetwork network)
           
 void windowGainedFocus(WindowEvent e)
          For Exteernal Frames
 void windowLostFocus(WindowEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cytoscapeDesktop

protected CytoscapeDesktop cytoscapeDesktop

VIEW_TYPE

protected int VIEW_TYPE

pcs

protected SwingPropertyChangeSupport pcs

frame_count

protected static int frame_count
Constructor Detail

NetworkViewManager

public NetworkViewManager(CytoscapeDesktop desktop,
                          int view_type)
Constructor for overiding the default Desktop view type


NetworkViewManager

public NetworkViewManager(CytoscapeDesktop desktop)
Method Detail

initialize

protected void initialize()

getSwingPropertyChangeSupport

public SwingPropertyChangeSupport getSwingPropertyChangeSupport()

getTabbedPane

public JTabbedPane getTabbedPane()

getDesktopPane

public JDesktopPane getDesktopPane()

updateNetworkTitle

public void updateNetworkTitle(CyNetwork network)

stateChanged

public void stateChanged(ChangeEvent e)
For Tabbed Panes

Specified by:
stateChanged in interface ChangeListener

internalFrameActivated

public void internalFrameActivated(InternalFrameEvent e)
For Internal Frames

Specified by:
internalFrameActivated in interface InternalFrameListener

internalFrameClosed

public void internalFrameClosed(InternalFrameEvent e)
Specified by:
internalFrameClosed in interface InternalFrameListener

internalFrameClosing

public void internalFrameClosing(InternalFrameEvent e)
Specified by:
internalFrameClosing in interface InternalFrameListener

internalFrameDeactivated

public void internalFrameDeactivated(InternalFrameEvent e)
Specified by:
internalFrameDeactivated in interface InternalFrameListener

internalFrameDeiconified

public void internalFrameDeiconified(InternalFrameEvent e)
Specified by:
internalFrameDeiconified in interface InternalFrameListener

internalFrameIconified

public void internalFrameIconified(InternalFrameEvent e)
Specified by:
internalFrameIconified in interface InternalFrameListener

internalFrameOpened

public void internalFrameOpened(InternalFrameEvent e)
Specified by:
internalFrameOpened in interface InternalFrameListener

windowGainedFocus

public void windowGainedFocus(WindowEvent e)
For Exteernal Frames

Specified by:
windowGainedFocus in interface WindowFocusListener

windowLostFocus

public void windowLostFocus(WindowEvent e)
Specified by:
windowLostFocus in interface WindowFocusListener

propertyChange

public void propertyChange(PropertyChangeEvent e)
This handles all of the incoming PropertyChangeEvents. If you are going to have multiple NetworkViewManagers, then this method should be extended such that the desired behaviour is achieved, assuming of course that you want your NetworkViewManagers to behave differently.

Specified by:
propertyChange in interface PropertyChangeListener

firePropertyChange

public void firePropertyChange(String property_type,
                               Object old_value,
                               Object new_value)
Fires a PropertyChangeEvent


setFocus

protected void setFocus(String network_id)
Sets the focus of the passed network, if possible The Network ID corresponds to the CyNetworkView.getNetwork().getIdentifier()


removeView

protected void removeView(CyNetworkView view)

createContainer

protected void createContainer(CyNetworkView view)
Contains a CyNetworkView according to the view type of this NetworkViewManager