Interface MethodSupport


public interface MethodSupport
This interface can be implemented to provide method support in models, e.g. which symbols/relation-types should be preferred from a symbol in a given direction.
  • Method Details

    • getDistanceToNewSymbol

      Insets getDistanceToNewSymbol()
      Returns the preferred distance to new symbols, depending on direction.
    • getPreferredOutputs

      List<PreferredOutput> getPreferredOutputs(SymbolType source, MethodSupport.Direction direction)
      Returns the preferred outputs for a symbol in a given direction.
      Parameters:
      source - The source type.
      direction - The direction to place a new symbol in.
      Returns:
      A list of preferred outputs in the given direction.
    • getPreferredOutputs

      default List<PreferredOutput> getPreferredOutputs(MTCompleteVertex vertex, MethodSupport.Direction direction)