org.peace_tools.views
Class ClusterTreeTableView.DataSetRenderer

java.lang.Object
  extended by org.peace_tools.views.ClusterTreeTableView.DataSetRenderer
All Implemented Interfaces:
org.netbeans.swing.outline.RenderDataProvider
Enclosing class:
ClusterTreeTableView

private class ClusterTreeTableView.DataSetRenderer
extends java.lang.Object
implements org.netbeans.swing.outline.RenderDataProvider

A tree cell renderer that essentially provides a better representative set of Icons to make the overall display look a bit prettier.


Constructor Summary
ClusterTreeTableView.DataSetRenderer()
          The default constructor.
 
Method Summary
 java.awt.Color getBackground(java.lang.Object o)
          Provide background for a given object.
 java.lang.String getDisplayName(java.lang.Object o)
          Provides a name for the node to be displayed on the tree.
 java.awt.Color getForeground(java.lang.Object o)
          Provide foreground for a given object.
 javax.swing.Icon getIcon(java.lang.Object o)
          Provide an icon for a given object.
 java.lang.String getTooltipText(java.lang.Object o)
          Provide an tool tip for the node.
 boolean isHtmlDisplayName(java.lang.Object o)
          Indicate all labels are in HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterTreeTableView.DataSetRenderer

public ClusterTreeTableView.DataSetRenderer()
The default constructor. Currently it does nothing and is here merely to adhere to coding conventions.

Method Detail

getBackground

public java.awt.Color getBackground(java.lang.Object o)
Provide background for a given object. Provides a default implementation for the RenderDataProvider API.

Specified by:
getBackground in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method always returns null for default (or no) background color.

getDisplayName

public java.lang.String getDisplayName(java.lang.Object o)
Provides a name for the node to be displayed on the tree. Provides a default implementation for the RenderDataProvider API.

Specified by:
getDisplayName in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method returns a suitable string corresponding to the given object.

getForeground

public java.awt.Color getForeground(java.lang.Object o)
Provide foreground for a given object. Provides a default implementation for the RenderDataProvider API.

Specified by:
getForeground in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method always returns null for default (or no) foreground color.

getIcon

public javax.swing.Icon getIcon(java.lang.Object o)
Provide an icon for a given object. Provides a default implementation for the RenderDataProvider API.

Specified by:
getIcon in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method returns a suitable icon for a the given object assuming that the object is either an EST node or a Cluster.

getTooltipText

public java.lang.String getTooltipText(java.lang.Object o)
Provide an tool tip for the node. Provides a default implementation for the RenderDataProvider API.

Specified by:
getTooltipText in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method currently returns null for all objects.

isHtmlDisplayName

public boolean isHtmlDisplayName(java.lang.Object o)
Indicate all labels are in HTML. Provides a default implementation for the RenderDataProvider API.

Specified by:
isHtmlDisplayName in interface org.netbeans.swing.outline.RenderDataProvider
Returns:
This method currently returns true to indicate that the labels are always in HTML.