Interface IComputationStrategy

    • Method Detail

      • computePositionInScene

        Point computePositionInScene​(javafx.scene.Node anchorage,
                                     javafx.scene.Node anchored,
                                     java.util.Set<IComputationStrategy.Parameter<?>> parameters)
        Computes an anchor position based on the given anchorage visual, anchored visual, and anchored reference point.
        Parameters:
        anchorage - The anchorage visual.
        anchored - The anchored visual.
        parameters - The available computation parameters. strategy.
        Returns:
        The anchor position.
      • getRequiredParameters

        java.util.Set<java.lang.Class<? extends IComputationStrategy.Parameter<?>>> getRequiredParameters()
        Returns the types of parameters required by this strategy.
        Returns:
        The parameters required by this strategy.