public class PortTerminal extends TerminalFigure
When this is constructed, a figure is specified for the port, and properties of this figure, such as its bounds, whether it intersects other objects, etc., are determined by that figure. The extra decorations added to support multiple connections are not treated as part of the figure.
|Constructor and Description|
Construct a port terminal with the specified figure as the port figure.
|Modifier and Type||Method and Description|
Return the number of links to relations that this port has.
Return the order index of the connection represented by the specified connector.
Return the port specified in the constructor.
contains, getAttachSite, getBounds, getConnectSite, getFigure, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, getTransformContext, getUserObject, hit, intersects, isVisible, paint, paint, relocate, repaint, repaint, setAttachSite, setInteractor, setParent, setToolTipText, setUserObject, setVisible, transform, translate
port- The port.
figure- The associated figure.
normal- The normal direction.
inside- True if this is external port and the terminal represents inside connections.
public int getNumberOfLinks()
public int getOrderIndex(LinkManhattanConnector connector)
connector- The connector.
public IOPort getPort()