com.limegroup.gnutella.gui.statistics
Interface StatisticsPane

All Superinterfaces:
RefreshListener

public interface StatisticsPane
extends RefreshListener

An object that defines the basic functionality of an StatisticsPane, or one panel specifying a set of statistics in the statistics window.

Each StatisticsPane has a unique identifying name that allows it to be displayed in the CardLayout.


Method Summary
 void add(PaneItem item)
          Adds a new option item to this pane.
 void componentResized(java.awt.event.ComponentEvent e, java.awt.Component comp)
          Notifies the StatisticsPane that the component has been resized.
 boolean display()
          Returns whether or not to display this pane.
 javax.swing.JComponent getComponent()
          Returns the Container instance that holds the different elements of this StatisticsPane.
 PaneItem getFirstPaneItem()
          Returns the first PaneItem in this pane.
 java.lang.String getName()
          Returns the name of this StatisticsPane.
 
Methods inherited from interface com.limegroup.gnutella.gui.RefreshListener
refresh
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this StatisticsPane.

Returns:
the name of this StatisticsPane

getComponent

public javax.swing.JComponent getComponent()
Returns the Container instance that holds the different elements of this StatisticsPane.

Returns:
the Container associated with this StatisticsPane

add

public void add(PaneItem item)
Adds a new option item to this pane.

Parameters:
item - the PaneItem instance to add to this StatisticsPane

display

public boolean display()
Returns whether or not to display this pane.

Returns:
true if the pane should be displayed, otherwise false

getFirstPaneItem

public PaneItem getFirstPaneItem()
Returns the first PaneItem in this pane.

Returns:
the first PaneItem in this pane

componentResized

public void componentResized(java.awt.event.ComponentEvent e,
                             java.awt.Component comp)
Notifies the StatisticsPane that the component has been resized.

Parameters:
e - the ComponentEvent that generated the resize
comp - the pane Component