org.jdesktop.swingx.renderer
Class TreeLabelProvider

java.lang.Object
  extended by org.jdesktop.swingx.renderer.ComponentProvider<JLabel>
      extended by org.jdesktop.swingx.renderer.LabelProvider
          extended by org.jdesktop.swingx.renderer.TreeLabelProvider
All Implemented Interfaces:
Serializable

Deprecated. use WrappingProvider instead.

public class TreeLabelProvider
extends LabelProvider

A LabelProvider specialized on rendering in JTree. This is no longer used, replaced by WrappingProvider. Will be removed as soon as the replacement is fully functional.

See Also:
WrappingProvider, Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.swingx.renderer.ComponentProvider
alignment, defaultVisuals, formatter, rendererComponent
 
Constructor Summary
TreeLabelProvider()
          Deprecated.  
TreeLabelProvider(StringValue converter)
          Deprecated.  
 
Method Summary
protected  void configureBorder(CellContext context)
          Deprecated.  
protected  void configureIcon(CellContext context)
          Deprecated.  
protected  void configureState(CellContext context)
          Deprecated. Configures the renderering component's state from the given cell context. Here: sets the Label's horizontal alignment to the alignment as configured in the controller.
protected  JLabel createRendererComponent()
          Deprecated. Factory method to create and return the component to use for rendering.

protected  Icon getIcon(CellContext context)
          Deprecated. Returns the icon to use for rendering the current tree node.
 
Methods inherited from class org.jdesktop.swingx.renderer.LabelProvider
format
 
Methods inherited from class org.jdesktop.swingx.renderer.ComponentProvider
configureContent, configureVisuals, createRendererController, getHorizontalAlignment, getRendererComponent, getRendererController, getStringValue, getToStringConverter, setHorizontalAlignment, setToStringConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLabelProvider

public TreeLabelProvider()
Deprecated. 

TreeLabelProvider

public TreeLabelProvider(StringValue converter)
Deprecated. 
Parameters:
converter -
Method Detail

configureState

protected void configureState(CellContext context)
Deprecated. 
Configures the renderering component's state from the given cell context. Here: sets the Label's horizontal alignment to the alignment as configured in the controller.

Overridden to copy the context's selected and focused state which are needed during the paint.

Overrides:
configureState in class LabelProvider
Parameters:
context - the cell context to configure from, must not be null.

configureBorder

protected void configureBorder(CellContext context)
Deprecated. 
Parameters:
context -

configureIcon

protected void configureIcon(CellContext context)
Deprecated. 

getIcon

protected Icon getIcon(CellContext context)
Deprecated. 
Returns the icon to use for rendering the current tree node. Here: returns the default icon as returned by the cell context.

Parameters:
context -
Returns:

createRendererComponent

protected JLabel createRendererComponent()
Deprecated. 
Factory method to create and return the component to use for rendering.

Overrides:
createRendererComponent in class LabelProvider
Returns:
the component to use for rendering.