Package pal.tree
Class TreeOperation.Utils
- java.lang.Object
-
- pal.tree.TreeOperation.Utils
-
- Enclosing interface:
- TreeOperation
public static final class TreeOperation.Utils extends java.lang.Object
Utility class
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 resultstatic TreeOperation
createScale(double scaleFactor, int resultingUnits)
Create a tree operation that scales the input tree and changes the unitsstatic TreeOperation
getNoOperation()
-
-
-
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 doneresultingUnits
- 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 applysecond
- the operation to apply on the result of the first- Returns:
- A tree operation
-
getNoOperation
public static final TreeOperation getNoOperation()
-
-