|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.gui.statistics.panes.AbstractPaneItem
This class provides a skeletal implementation of the PaneItem interface.
It provides the basic implementation for displaying one statistic within a larger window of statistics. Each AbstractPaneItem has a titled border and a label describing the statistic. The label is followed by standardized spacing.
| Field Summary | |
protected TitledPaddedPanel |
CONTAINER
The container that elements in the pane are added to. |
protected static java.awt.Component |
HORIZONTAL_SEPARATOR
Constant Component for use as a standard horizontal separator. |
protected StatisticDisplayer |
STAT_DISPLAYER
The component that displays the statistic. |
protected static java.awt.Component |
VERTICAL_SEPARATOR
Constant Component for use as a standard horizontal separator. |
| Constructor Summary | |
protected |
AbstractPaneItem(java.lang.String key,
StatisticDisplayer statDisplayer)
This sole constructor overrides the the public accessibility of the default constructor and is usually called implicitly. |
| Method Summary | |
protected void |
add(java.awt.Component comp)
Adds the specified Component to the enclosed Container instance. |
void |
componentResized(java.awt.event.ComponentEvent e,
java.awt.Component comp)
Notifies the StatisticsPane that the component has been resized. |
java.awt.Container |
getContainer()
Returns the Container for this set of statistics. |
protected java.awt.Component |
getHorizontalSeparator()
Returns a Component standardly sized for horizontal separators. |
javax.swing.JComponent |
getStatsComponent()
Accessor for the component that displays the statistic -- without the label or associated components. |
protected java.awt.Component |
getVerticalSeparator()
Returns a Component standardly sized for vertical separators. |
void |
refresh()
Refreshes the statistics for this PaneItem. |
protected void |
registerDualStatistic(com.limegroup.gnutella.statistics.Statistic stat0,
com.limegroup.gnutella.statistics.Statistic stat1,
java.lang.String displayName)
Registers the set of two Statistics for display. |
protected void |
registerStatistic(com.limegroup.gnutella.statistics.Statistic stat,
java.lang.String displayName)
Registers the specified Statistic for display. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final StatisticDisplayer STAT_DISPLAYER
protected final TitledPaddedPanel CONTAINER
protected static final java.awt.Component HORIZONTAL_SEPARATOR
protected static final java.awt.Component VERTICAL_SEPARATOR
| Constructor Detail |
protected AbstractPaneItem(java.lang.String key,
StatisticDisplayer statDisplayer)
key - the key for obtaining the locale-specific values for
displayed strings| Method Detail |
public javax.swing.JComponent getStatsComponent()
PaneItem
getStatsComponent in interface PaneItempublic java.awt.Container getContainer()
PaneItem
getContainer in interface PaneItemprotected final void add(java.awt.Component comp)
comp - the Component to addprotected final java.awt.Component getHorizontalSeparator()
protected final java.awt.Component getVerticalSeparator()
protected void registerStatistic(com.limegroup.gnutella.statistics.Statistic stat,
java.lang.String displayName)
stat - the Statistic instance to register
protected void registerDualStatistic(com.limegroup.gnutella.statistics.Statistic stat0,
com.limegroup.gnutella.statistics.Statistic stat1,
java.lang.String displayName)
public void refresh()
refresh in interface RefreshListenerpublic java.lang.String toString()
public void componentResized(java.awt.event.ComponentEvent e,
java.awt.Component comp)
PaneItem
componentResized in interface PaneIteme - the ComponentEvent that generated the resizecomp - the pane Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||