|
Cytoscape 2.3.1 (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
javax.swing.JComponent
javax.swing.JPanel
cytoscape.view.cytopanels.CytoPanelImp
The CytoPanel class extends JPanel to provide the following functionality:
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CytoPanelImp(int compassDirection,
int tabPlacement,
CytoPanelState cytoPanelState)
Constructor. |
|
| Method Summary | |
Component |
add(Component component)
Adds a component to the CytoPanel. |
Component |
add(Component component,
int index)
Adds a component to the CytoPanel at specified index. |
Component |
add(String title,
Component component)
Adds a component to the CytoPanel with a specified title. |
void |
add(String title,
Icon icon,
Component component)
Adds a component to the CytoPanel with specified title and icon. |
void |
add(String title,
Icon icon,
Component component,
String tip)
Adds a component to the CytoPanel with specified title, icon, and tool tip. |
void |
addCytoPanelListener(CytoPanelListener cytoPanelListener)
Adds a CytoPanel listener. |
int |
getCytoPanelComponentCount()
Returns the number of components in the CytoPanel. |
Component |
getSelectedComponent()
Returns the currently selected component. |
int |
getSelectedIndex()
Returns the currently selected index. |
CytoPanelState |
getState()
Gets the state of the CytoPanel. |
String |
getTitle()
Returns the proper title based on our compass direction. |
int |
indexOfComponent(Component component)
Returns the index for the specified component. |
int |
indexOfComponent(String title)
Returns the first Component index with given title. |
void |
remove(Component component)
Removes specified component from the CytoPanel. |
void |
remove(int index)
Removes the component from the CytoPanel at the specified index. |
void |
removeAll()
Removes all the components from the CytoPanel. |
void |
removeCytoPanelListener(CytoPanelListener cytoPanelListener)
Removes a CytoPanel listener. |
void |
setCytoPanelContainer(CytoPanelContainer cytoPanelContainer)
Sets CytoPanelContainer interface reference. |
void |
setSelectedIndex(int index)
Sets the selected index on the CytoPanel. |
void |
setState(CytoPanelState cytoPanelState)
Sets the state of the CytoPanel. |
void |
stateChanged(ChangeEvent e)
Our implementation of the ChangeListener interface, to determine when new tab has been selected |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CytoPanelImp(int compassDirection,
int tabPlacement,
CytoPanelState cytoPanelState)
compassDirection - Compass direction of this CytoPanel.tabPlacement - Tab placement of this CytoPanel.cytoPanelState - The starting CytoPanel state.| Method Detail |
public void setCytoPanelContainer(CytoPanelContainer cytoPanelContainer)
cytoPanelContainer - Reference to CytoPanelContainerpublic String getTitle()
public Component add(Component component)
component - Component reference.
public Component add(Component component, int index)
component - Component reference.index - Component index.
public Component add(String title, Component component)
title - Component title.component - Component reference.
public void add(String title, Icon icon, Component component)
title - Component title (can be null).icon - Component icon (can be null).component - Component reference.public void add(String title, Icon icon, Component component, String tip)
title - Component title (can be null).icon - Component icon (can be null).component - Component reference.tip - Component Tool tip text.public int getCytoPanelComponentCount()
getCytoPanelComponentCount in interface CytoPanelpublic Component getSelectedComponent()
getSelectedComponent in interface CytoPanelpublic int getSelectedIndex()
getSelectedIndex in interface CytoPanelpublic int indexOfComponent(Component component)
indexOfComponent in interface CytoPanelcomponent - Component reference.
public int indexOfComponent(String title)
indexOfComponent in interface CytoPaneltitle - Component title.
public void remove(Component component)
component - Component reference.public void remove(int index)
index - Component index.public void removeAll()
public void setSelectedIndex(int index)
setSelectedIndex in interface CytoPanelindex - The desired index.public void setState(CytoPanelState cytoPanelState)
cytoPanelState - A CytoPanelState.public CytoPanelState getState()
public void addCytoPanelListener(CytoPanelListener cytoPanelListener)
addCytoPanelListener in interface CytoPanelcytoPanelListener - Reference to a CytoPanelListener.public void removeCytoPanelListener(CytoPanelListener cytoPanelListener)
removeCytoPanelListener in interface CytoPanelcytoPanelListener - Reference to a CytoPanelListener.public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListener
|
www.cytoscape.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||