|
Cytoscape 2.2 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
cytoscape.view.CytoscapeDesktop
The CytoscapeDesktop is the central Window for working with Cytoscape
Field Summary | |
static int |
EXTERNAL_VIEW
Displays all network views in JFrames, so each Network has its own window. |
static int |
INTERNAL_VIEW
Displays all network views in JInternalFrames, using the mock desktop interface. |
static String |
NETWORK_VIEW_CREATED
|
static String |
NETWORK_VIEW_DESTROYED
|
static String |
NETWORK_VIEW_FOCUS
|
static String |
NETWORK_VIEW_FOCUSED
|
static int |
TABBED_VIEW
Displays all network views in TabbedPanes ( like Mozilla ) |
static UndoManager |
undo
Cytoscape UndoManager |
static String |
VISUAL_STYLE
|
static String |
VIZMAP_ENABLED
|
Fields inherited from class javax.swing.JFrame |
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
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, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CytoscapeDesktop()
The Default constructor uses a TabbedView |
|
CytoscapeDesktop(int view_type)
Create a CytoscapeDesktop that conforms the given view type. |
Method Summary | |
void |
addEdit(UndoableEdit edit)
|
void |
applyLayout(GraphView lview)
Deprecated. |
void |
applySelLayout()
Deprecated. |
void |
applyVizmapSettings()
Deprecated. |
void |
clearStatusBar()
Clears the Status Bar Message. |
CyMenus |
getCyMenus()
Returns the object that holds references to the menu bars and several of the major submenus. |
CytoPanel |
getCytoPanel(int compassDirection)
Gets a cytoPanel given a Compass direction. |
cytoscape.view.GraphViewController |
getGraphViewController()
TO keep things clearer there is one GraphView Controller per CytoscapeDesktop |
javax.help.HelpBroker |
getHelpBroker()
|
javax.help.HelpSet |
getHelpSet()
|
JFrame |
getMainFrame()
Deprecated. |
CyNetwork |
getNetwork()
Deprecated. |
cytoscape.view.NetworkPanel |
getNetworkPanel()
|
cytoscape.view.NetworkViewManager |
getNetworkViewManager()
Gets the NetworkView Manager. |
SwingPropertyChangeSupport |
getSwingPropertyChangeSupport()
|
GraphView |
getView()
Deprecated. |
VisualMappingManager |
getVizMapManager()
Returns the visual mapping manager that controls the appearance of nodes and edges in this display. |
cytoscape.visual.ui.VizMapUI |
getVizMapUI()
returns the top-level UI object for the visual mapper. |
String |
getWindowTitle()
Deprecated. |
void |
propertyChange(PropertyChangeEvent e)
|
void |
redrawGraph()
Deprecated. |
void |
redrawGraph(boolean doLayout)
Deprecated. |
void |
redrawGraph(boolean doLayout,
boolean applyAppearances)
Deprecated. |
void |
setFocus(String network_id)
|
void |
setInteractivity(boolean newState)
Deprecated. |
void |
setNewNetwork(CyNetwork newNetwork)
|
void |
setStatusBarMsg(String msg)
Sets the Status Bar Message. |
void |
setVisualMapperEnabled(boolean newState)
Deprecated. |
VisualStyle |
setVisualStyle(VisualStyle style)
|
void |
setWindowTitle(String newTitle)
Deprecated. |
void |
showWindow()
Deprecated. |
void |
showWindow(int width,
int height)
Deprecated. |
void |
switchToEditMode()
Deprecated. |
void |
switchToReadOnlyMode()
Deprecated. |
void |
toggleVisualMapperEnabled()
Deprecated. |
Methods inherited from class javax.swing.JFrame |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.awt.Frame |
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static String NETWORK_VIEW_FOCUSED
public static String NETWORK_VIEW_FOCUS
public static String NETWORK_VIEW_CREATED
public static String NETWORK_VIEW_DESTROYED
public static String VISUAL_STYLE
public static String VIZMAP_ENABLED
public static UndoManager undo
public static int TABBED_VIEW
public static int INTERNAL_VIEW
public static int EXTERNAL_VIEW
Constructor Detail |
public CytoscapeDesktop()
public CytoscapeDesktop(int view_type)
view_type
- one of the ViewTypesMethod Detail |
public void setStatusBarMsg(String msg)
msg
- Status Bar Message.public void clearStatusBar()
public cytoscape.view.NetworkPanel getNetworkPanel()
public javax.help.HelpBroker getHelpBroker()
public javax.help.HelpSet getHelpSet()
public void addEdit(UndoableEdit edit)
public CyNetwork getNetwork()
Cytoscape.getCurrentNetwork()
getNetwork
in interface cytoscape.view.CyWindow
public GraphView getView()
Cytoscape.getCurrentNetworkView()
getView
in interface cytoscape.view.CyWindow
public JFrame getMainFrame()
Cytoscape.getDesktop()
getMainFrame
in interface cytoscape.view.CyWindow
public CyMenus getCyMenus()
cytoscape.view.CyWindow
getCyMenus
in interface cytoscape.view.CyWindow
public void setNewNetwork(CyNetwork newNetwork)
setNewNetwork
in interface cytoscape.view.CyWindow
newNetwork
- the new network to displaypublic String getWindowTitle()
getWindowTitle
in interface cytoscape.view.CyWindow
public void setWindowTitle(String newTitle)
CyNetworkView.setTitle( String )
setWindowTitle
in interface cytoscape.view.CyWindow
public void setInteractivity(boolean newState)
setInteractivity
in interface cytoscape.view.CyWindow
public void redrawGraph()
CyNetworkView.redrawGraph( boolean, boolean )
Redraws the graph - equivalent to redrawGraph(false, true).
That is, no new layout will be performed, but the visual
appearances will be reapplied.
redrawGraph
in interface cytoscape.view.CyWindow
public void redrawGraph(boolean doLayout)
CyNetworkView.redrawGraph( boolean, boolean )
Redraws the graph - equivalent to redrawGraph(doLayout, true).
That is, the visual appearances will be reapplied, and layout
will be done iff the argument is true.
redrawGraph
in interface cytoscape.view.CyWindow
public void redrawGraph(boolean doLayout, boolean applyAppearances)
CyNetworkView.redrawGraph( boolean, boolean )
Redraws the graph. A new layout will be performed if the first
argument is true, and the visual appearances will be recalculated
and reapplied by the visual mapper if the second argument is true
and the visual mapper is not disabled.
redrawGraph
in interface cytoscape.view.CyWindow
public void showWindow(int width, int height)
showWindow
in interface cytoscape.view.CyWindow
public void showWindow()
showWindow
in interface cytoscape.view.CyWindow
public void applyLayout(GraphView lview)
applyLayout
in interface cytoscape.view.CyWindow
public void applySelLayout()
applySelLayout
in interface cytoscape.view.CyWindow
public void applyVizmapSettings()
public void setVisualMapperEnabled(boolean newState)
setVisualMapperEnabled
in interface cytoscape.view.CyWindow
public void toggleVisualMapperEnabled()
toggleVisualMapperEnabled
in interface cytoscape.view.CyWindow
public void switchToReadOnlyMode()
switchToReadOnlyMode
in interface cytoscape.view.CyWindow
public void switchToEditMode()
switchToEditMode
in interface cytoscape.view.CyWindow
public VisualMappingManager getVizMapManager()
getVizMapManager
in interface cytoscape.view.CyWindow
public cytoscape.visual.ui.VizMapUI getVizMapUI()
getVizMapUI
in interface cytoscape.view.CyWindow
public VisualStyle setVisualStyle(VisualStyle style)
style
- the NEW VisualStyle
public void setFocus(String network_id)
public cytoscape.view.GraphViewController getGraphViewController()
getGraphViewController
in interface cytoscape.view.CyWindow
cytoscape.view.GraphViewController
public SwingPropertyChangeSupport getSwingPropertyChangeSupport()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public CytoPanel getCytoPanel(int compassDirection)
compassDirection
- Compass Direction (SwingConstants.{SOUTH,EAST,WEST}).
public cytoscape.view.NetworkViewManager getNetworkViewManager()
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |