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.
PortSite
_connectSite
Constructor and Description |
---|
PortTerminal(IOPort port,
Figure figure,
double normal,
boolean inside)
Construct a port terminal with the specified figure as
the port figure.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfLinks()
Return the number of links to relations that this port has.
|
int |
getOrderIndex(LinkManhattanConnector connector)
Return the order index of the connection represented
by the specified connector.
|
IOPort |
getPort()
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
public PortTerminal(IOPort port, Figure figure, double normal, boolean inside)
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()