Package pal.tree
Class TreeOperation.Utils
java.lang.Object
pal.tree.TreeOperation.Utils
- Enclosing interface:
TreeOperation
Utility class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 resultstatic final TreeOperation
createScale
(double scaleFactor, int resultingUnits) Create a tree operation that scales the input tree and changes the unitsstatic final TreeOperation
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
createScale
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
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
-