Class LookupConnection
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.blockandconnector.model.impl.LookupConnection
-
- All Implemented Interfaces:
Connection
public class LookupConnection extends java.lang.Object implements Connection
This implementation of Connection doesn't actually store the AnchorPoint objects themselves, instead, it stores the block ids and anchor point ids. Then it looks these things up on retrieval. This way it is resistant to anchorpoints that get regenerated (for block UIs that are dynamic)
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockDiagramModel
model
protected AnchorPointId
origin
protected AnchorPointId
terminus
-
Constructor Summary
Constructors Constructor Description LookupConnection(BlockDiagramModel model, AnchorPoint origin, AnchorPoint terminus)
LookupConnection(BlockDiagramModel model, AnchorPointId origin, AnchorPointId terminus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchorPoint
getOrigin()
AnchorPoint
getTerminus()
-
-
-
Field Detail
-
model
protected final BlockDiagramModel model
-
origin
protected final AnchorPointId origin
-
terminus
protected final AnchorPointId terminus
-
-
Constructor Detail
-
LookupConnection
public LookupConnection(BlockDiagramModel model, AnchorPoint origin, AnchorPoint terminus)
-
LookupConnection
public LookupConnection(BlockDiagramModel model, AnchorPointId origin, AnchorPointId terminus)
-
-
Method Detail
-
getOrigin
public AnchorPoint getOrigin()
- Specified by:
getOrigin
in interfaceConnection
- Returns:
- The origin anchorpoint. May return null if this connection is no longer valid.
-
getTerminus
public AnchorPoint getTerminus()
- Specified by:
getTerminus
in interfaceConnection
- Returns:
- The terminus anchorpoint. May return null if this connection is no longer valid.
-
-