de.grogra.pf.ui.tree
Class HierarchyFlattener

java.lang.Object
  extended by de.grogra.pf.ui.tree.HierarchyFlattener
All Implemented Interfaces:
UITreePipeline.Transformer, Disposable

public class HierarchyFlattener
extends java.lang.Object
implements UITreePipeline.Transformer


Constructor Summary
HierarchyFlattener()
           
HierarchyFlattener(ObjectToBoolean filter, boolean insertSeparator)
           
 
Method Summary
 void dispose()
           
protected  boolean flattenGroup(UITreePipeline.Node node)
           
protected  boolean hasContent(UITreePipeline.Node node)
           
 void initialize(UITreePipeline pipeline)
           
 boolean isAffectedBy(javax.swing.tree.TreePath path)
           
protected  boolean isLeaf(UITreePipeline.Node node)
           
 void transform(UITreePipeline.Node root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchyFlattener

public HierarchyFlattener()

HierarchyFlattener

public HierarchyFlattener(ObjectToBoolean filter,
                          boolean insertSeparator)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface Disposable

flattenGroup

protected boolean flattenGroup(UITreePipeline.Node node)

hasContent

protected boolean hasContent(UITreePipeline.Node node)

initialize

public void initialize(UITreePipeline pipeline)
Specified by:
initialize in interface UITreePipeline.Transformer

isAffectedBy

public boolean isAffectedBy(javax.swing.tree.TreePath path)
Specified by:
isAffectedBy in interface UITreePipeline.Transformer

isLeaf

protected boolean isLeaf(UITreePipeline.Node node)

transform

public void transform(UITreePipeline.Node root)
Specified by:
transform in interface UITreePipeline.Transformer