Search this API

y.layout
Interface PortCandidateSet.Entry

Enclosing class:
PortCandidateSet

public static interface PortCandidateSet.Entry

This interface represents an entry of a PortCandidateSet and provides access to the actual PortCandidate instance and the maximum number of edges allowed to connect to it.

 
Your browser does not support SVG content.

Method Summary
 int getConnections()
          Returns the maximum number of edges allowed to connect to the PortCandidate associated with this PortCandidateSet.Entry.
 PortCandidate getPortCandidate()
          Returns the actual PortCandidate associated with this PortCandidateSet.Entry.
 

Method Detail

getPortCandidate

PortCandidate getPortCandidate()
Returns the actual PortCandidate associated with this PortCandidateSet.Entry.

Returns:
the associated PortCandidate instance

getConnections

int getConnections()
Returns the maximum number of edges allowed to connect to the PortCandidate associated with this PortCandidateSet.Entry.

Integer.MAX_VALUE indicates that the number of connections is unbounded.

Returns:
the capacity of the associated PortCandidate

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.