jebl.gui.trees.treeviewer.decorators
Class AttributeBranchDecorator

java.lang.Object
  extended by jebl.gui.trees.treeviewer.decorators.AttributeBranchDecorator
All Implemented Interfaces:
BranchDecorator

public class AttributeBranchDecorator
extends Object
implements BranchDecorator

Author:
Andrew Rambaut

Field Summary
protected  String attributeName
           
protected  Map<Object,Paint> paintMap
           
 
Constructor Summary
AttributeBranchDecorator(String attributeName, Map<Object,Paint> paintMap)
           
 
Method Summary
 Paint getBranchPaint(Tree tree, Node node)
           
protected  Paint getPaint(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeName

protected final String attributeName

paintMap

protected Map<Object,Paint> paintMap
Constructor Detail

AttributeBranchDecorator

public AttributeBranchDecorator(String attributeName,
                                Map<Object,Paint> paintMap)
Method Detail

getBranchPaint

public Paint getBranchPaint(Tree tree,
                            Node node)
Specified by:
getBranchPaint in interface BranchDecorator

getPaint

protected Paint getPaint(Object value)