Package pal.tree

Class TreeOperation.Utils

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

public static final class TreeOperation.Utils extends Object
Utility class
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • 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()