|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PortCandidateSet.CandidateMatcher
A PortCandidateSet.CandidateMatcher
retrieves the best matching entries
from a
PortCandidateSet
.
How well a candidate is matching can be decided based on its cost, its currently available capacity, its offsets or whether or not its direction is consistent with the desired one.
To use custom implementations of this interface, method PortCandidateSet.createMatcher()
should be overridden.
EdgeRouter
supports PortCandidateSet
s, it doesn't
support custom PortCandidateSet.CandidateMatcher
implementations.Method Summary | |
---|---|
PortCandidateSet.Entry |
findMatchingCandidate()
Returns the next best matching PortCandidateSet.Entry . |
PortCandidateSet.Entry |
findMatchingCandidate(Edge edge,
boolean source,
double xOffset,
double yOffset,
int directionMask)
Returns the next best matching PortCandidateSet.Entry for the given parameters. |
PortCandidateSet.Entry |
findMatchingCandidate(Edge edge,
boolean source,
int directionMask)
Returns the next best matching PortCandidateSet.Entry for the given parameters. |
Method Detail |
---|
PortCandidateSet.Entry findMatchingCandidate(Edge edge, boolean source, double xOffset, double yOffset, int directionMask)
PortCandidateSet.Entry
for the given parameters.
edge
- the edge for which to find a candidatesource
- true
if the given edge connects to its source node, false
otherwisexOffset
- the preferred X-offset of the port relative to the center of the nodeyOffset
- the preferred Y-offset of the port relative to the center of the nodedirectionMask
- any combination of default directions defined in PortCandidate
PortCandidateSet.Entry
instancePortCandidateSet.Entry findMatchingCandidate(Edge edge, boolean source, int directionMask)
PortCandidateSet.Entry
for the given parameters.
edge
- the edge for which to find a candidatesource
- true
if the given edge connects to its source node, false
otherwisedirectionMask
- any combination of default directions defined in PortCandidate
PortCandidateSet.Entry
instancePortCandidateSet.Entry findMatchingCandidate()
PortCandidateSet.Entry
.
PortCandidateSet.Entry
instance
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |