Cytoscape 2.8.0 API

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  int MINIMUM_WIN_HEIGHT
           
protected  int MINIMUM_WIN_WIDTH
           
protected  SwingPropertyChangeSupport pcs
           
 
Constructor Summary
NetworkViewManager(CytoscapeDesktop desktop)
          Creates a new NetworkViewManager object.
NetworkViewManager(CytoscapeDesktop desktop, int view_type)
          Deprecated. view_type is no longer used. Use the other constructor. Will be removed Aug 2008.
 
Method Summary
protected  void createContainer(CyNetworkView view)
          Contains a CyNetworkView.
 void firePropertyChange(String property_type, Object old_value, Object new_value)
          Fires a PropertyChangeEvent
 JDesktopPane getDesktopPane()
          DOCUMENT ME!
 JInternalFrame getInternalFrame(CyNetworkView view)
          Given a CyNetworkView, returns the internal frame.
 InternalFrameComponent getInternalFrameComponent(CyNetworkView view)
          Given a CyNetworkView, returns the InternalFrameComponent that wraps it.
 SwingPropertyChangeSupport getSwingPropertyChangeSupport()
          DOCUMENT ME!
 JTabbedPane getTabbedPane()
          Deprecated. Tabbed view is no longer used. Will be removed Aug 2008.
 void internalFrameActivated(InternalFrameEvent e)
          Fire Events when a Managed Network View gets the Focus.
 void internalFrameClosed(InternalFrameEvent e)
          DOCUMENT ME!
 void internalFrameClosing(InternalFrameEvent e)
          DOCUMENT ME!
 void internalFrameDeactivated(InternalFrameEvent e)
          DOCUMENT ME!
 void internalFrameDeiconified(InternalFrameEvent e)
          DOCUMENT ME!
 void internalFrameIconified(InternalFrameEvent e)
          DOCUMENT ME!
 void internalFrameOpened(InternalFrameEvent e)
          Fire Events when a Managed Network View gets the Focus.
 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)
          Deprecated. Will no longer support ChangeListener. Will be removed August 2008.
protected  void unsetFocus()
          Used to unset the focus of all the views.
 void updateNetworkTitle(CyNetwork network)
          DOCUMENT ME!
 void updateNetworkTitle(CyNetwork network, String title)
          Method to update the network title on the JInternalFrame, but not in the network panel.
 void windowGainedFocus(WindowEvent e)
          Deprecated. Will no longer support WindowFocusListener. Will be removed August 2008.
 void windowLostFocus(WindowEvent e)
          Deprecated. Will no longer support WindowFocusListener. Will be removed August 2008.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cytoscapeDesktop

protected final CytoscapeDesktop cytoscapeDesktop

pcs

protected final SwingPropertyChangeSupport pcs

MINIMUM_WIN_WIDTH

protected int MINIMUM_WIN_WIDTH

MINIMUM_WIN_HEIGHT

protected int MINIMUM_WIN_HEIGHT
Constructor Detail

NetworkViewManager

public NetworkViewManager(CytoscapeDesktop desktop,
                          int view_type)
Deprecated. view_type is no longer used. Use the other constructor. Will be removed Aug 2008.


NetworkViewManager

public NetworkViewManager(CytoscapeDesktop desktop)
Creates a new NetworkViewManager object.

Parameters:
desktop - DOCUMENT ME!
Method Detail

getSwingPropertyChangeSupport

public SwingPropertyChangeSupport getSwingPropertyChangeSupport()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTabbedPane

public JTabbedPane getTabbedPane()
Deprecated. Tabbed view is no longer used. Will be removed Aug 2008.


getDesktopPane

public JDesktopPane getDesktopPane()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getInternalFrameComponent

public InternalFrameComponent getInternalFrameComponent(CyNetworkView view)
                                                 throws IllegalArgumentException
Given a CyNetworkView, returns the InternalFrameComponent that wraps it.

Parameters:
view - CyNetworkView
Returns:
InternalFrameComponent
Throws:
IllegalArgumentException

getInternalFrame

public JInternalFrame getInternalFrame(CyNetworkView view)
                                throws IllegalArgumentException
Given a CyNetworkView, returns the internal frame.

Parameters:
view - CyNetworkView
Returns:
InternalFrameComponent
Throws:
IllegalArgumentException

updateNetworkTitle

public void updateNetworkTitle(CyNetwork network)
DOCUMENT ME!

Parameters:
network - DOCUMENT ME!

updateNetworkTitle

public void updateNetworkTitle(CyNetwork network,
                               String title)
Method to update the network title on the JInternalFrame, but not in the network panel.

Parameters:
network - CyNetwork
title - String

stateChanged

public void stateChanged(ChangeEvent e)
Deprecated. Will no longer support ChangeListener. Will be removed August 2008.

Specified by:
stateChanged in interface ChangeListener

internalFrameActivated

public void internalFrameActivated(InternalFrameEvent e)
Fire Events when a Managed Network View gets the Focus.

Specified by:
internalFrameActivated in interface InternalFrameListener

internalFrameOpened

public void internalFrameOpened(InternalFrameEvent e)
Fire Events when a Managed Network View gets the Focus.

Specified by:
internalFrameOpened in interface InternalFrameListener

internalFrameClosed

public void internalFrameClosed(InternalFrameEvent e)
DOCUMENT ME!

Specified by:
internalFrameClosed in interface InternalFrameListener
Parameters:
e - DOCUMENT ME!

internalFrameClosing

public void internalFrameClosing(InternalFrameEvent e)
DOCUMENT ME!

Specified by:
internalFrameClosing in interface InternalFrameListener
Parameters:
e - DOCUMENT ME!

internalFrameDeactivated

public void internalFrameDeactivated(InternalFrameEvent e)
DOCUMENT ME!

Specified by:
internalFrameDeactivated in interface InternalFrameListener
Parameters:
e - DOCUMENT ME!

internalFrameDeiconified

public void internalFrameDeiconified(InternalFrameEvent e)
DOCUMENT ME!

Specified by:
internalFrameDeiconified in interface InternalFrameListener
Parameters:
e - DOCUMENT ME!

internalFrameIconified

public void internalFrameIconified(InternalFrameEvent e)
DOCUMENT ME!

Specified by:
internalFrameIconified in interface InternalFrameListener
Parameters:
e - DOCUMENT ME!

windowGainedFocus

public void windowGainedFocus(WindowEvent e)
Deprecated. Will no longer support WindowFocusListener. Will be removed August 2008.

Specified by:
windowGainedFocus in interface WindowFocusListener

windowLostFocus

public void windowLostFocus(WindowEvent e)
Deprecated. Will no longer support WindowFocusListener. Will be removed August 2008.

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


unsetFocus

protected void unsetFocus()
Used to unset the focus of all the views. This is for the situation when a network is focused but the network doesn't have a view.


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.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.