|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel cytoscape.view.cytopanels.CytoPanelImp
public class CytoPanelImp
The CytoPanel class extends JPanel to provide the following functionality:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 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 |
add(String title,
Icon icon,
Component component,
String tip,
int index)
Adds a component to the CytoPanel with specified title, icon, and tool tip at specified index. |
void |
addComponentToSouth(Component pComponent)
Add a component to the CytoPanel just below the TabbedPane. |
void |
addCytoPanelListener(CytoPanelListener cytoPanelListener)
Adds a CytoPanel listener. |
int |
getCompassDirection()
Returns the int indicating the location within the layout. |
Component |
getComponentAt(int index)
Returns the component at index. |
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 |
removeComponentAtSouth(Component pComponent)
Remove a component from the CytoPanel just below the TabbedPane. |
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, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 void add(String title, Icon icon, Component component, String tip, int index)
title
- Component title (can be null).icon
- Component icon (can be null).component
- Component reference.tip
- Component Tool tip text.index
- Component index.public int getCytoPanelComponentCount()
getCytoPanelComponentCount
in interface CytoPanel
public Component getSelectedComponent()
getSelectedComponent
in interface CytoPanel
public Component getComponentAt(int index)
getComponentAt
in interface CytoPanel
public int getSelectedIndex()
getSelectedIndex
in interface CytoPanel
public int indexOfComponent(Component component)
indexOfComponent
in interface CytoPanel
component
- Component reference.
public int indexOfComponent(String title)
indexOfComponent
in interface CytoPanel
title
- 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 CytoPanel
index
- The desired index.public void setState(CytoPanelState cytoPanelState)
cytoPanelState
- A CytoPanelState.public CytoPanelState getState()
public void addCytoPanelListener(CytoPanelListener cytoPanelListener)
addCytoPanelListener
in interface CytoPanel
cytoPanelListener
- Reference to a CytoPanelListener.public void removeCytoPanelListener(CytoPanelListener cytoPanelListener)
removeCytoPanelListener
in interface CytoPanel
cytoPanelListener
- Reference to a CytoPanelListener.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void addComponentToSouth(Component pComponent)
pComponent
- the component to be added.public void removeComponentAtSouth(Component pComponent)
pComponent
- the component to be removed.public int getCompassDirection()
getCompassDirection
in interface CytoPanel
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |