com.limegroup.gnutella.gui.statistics
Class StatisticsPaneManager

java.lang.Object
  extended bycom.limegroup.gnutella.gui.statistics.StatisticsPaneManager
All Implemented Interfaces:
RefreshListener

public final class StatisticsPaneManager
extends java.lang.Object
implements RefreshListener

Manages the main statistics window that displays the various statistics windows.

This class also stores all of the main statistics panels to access all of them regardless of how many there are or what their specific type is.


Constructor Summary
StatisticsPaneManager()
          The constructor sets the layout and adds all of the StatisticsPane instances.
 
Method Summary
 void addPane(StatisticsPane pane)
          Adds the speficied window to the CardLayout based on its title.
 void componentResized(java.awt.event.ComponentEvent e)
           
 javax.swing.JComponent getComponent()
          Returns the main JComponent for this class.
 PaneItem getFirstDisplayedPaneItem()
           
 void refresh()
          Refreshes all statistics panes.
 void show(java.lang.String name)
          Shows the window speficied by its title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsPaneManager

public StatisticsPaneManager()
The constructor sets the layout and adds all of the StatisticsPane instances.

Method Detail

show

public void show(java.lang.String name)
Shows the window speficied by its title.

Parameters:
name - the name of the Component to show

getComponent

public javax.swing.JComponent getComponent()
Returns the main JComponent for this class.

Returns:
a JComponent instance that is the main component for this class.

getFirstDisplayedPaneItem

public PaneItem getFirstDisplayedPaneItem()

addPane

public void addPane(StatisticsPane pane)
Adds the speficied window to the CardLayout based on its title.


refresh

public void refresh()
Refreshes all statistics panes.

Specified by:
refresh in interface RefreshListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)