pal.tree
Class TreeOperation.Utils

java.lang.Object
  extended by pal.tree.TreeOperation.Utils
Enclosing interface:
TreeOperation

public static final class TreeOperation.Utils
extends java.lang.Object

Utility class


Constructor Summary
TreeOperation.Utils()
           
 
Method Summary
static TreeOperation createPipeline(TreeOperation first, TreeOperation second)
          Creates a tree operation that first applies one tree operation and then applies a second operation to get it's result
static TreeOperation createScale(double scaleFactor, int resultingUnits)
          Create a tree operation that scales the input tree and changes the units
static TreeOperation getNoOperation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeOperation.Utils

public TreeOperation.Utils()
Method Detail

createScale

public static final TreeOperation createScale(double scaleFactor,
                                              int resultingUnits)
Create a tree operation that scales the input tree and changes the units

Parameters:
scaleFactor - The scaling to be done
resultingUnits - The new units
Returns:
A Tree Operation

createPipeline

public static final TreeOperation createPipeline(TreeOperation first,
                                                 TreeOperation second)
Creates a tree operation that first applies one tree operation and then applies a second operation to get it's result

Parameters:
first - the first operation to apply
second - the operation to apply on the result of the first
Returns:
A tree operation

getNoOperation

public static final TreeOperation getNoOperation()