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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred distance to new symbols, depending on direction.default List<PreferredOutput>
getPreferredOutputs
(MTCompleteVertex vertex, MethodSupport.Direction direction) getPreferredOutputs
(SymbolType source, MethodSupport.Direction direction) Returns the preferred outputs for a symbol in a given direction.
-
Method Details
-
getDistanceToNewSymbol
Insets getDistanceToNewSymbol()Returns the preferred distance to new symbols, depending on direction. -
getPreferredOutputs
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)
-