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 SummaryFields Modifier and Type Field Description protected BlockDiagramModelmodelprotected AnchorPointIdoriginprotected AnchorPointIdterminus
 - 
Constructor SummaryConstructors Constructor Description LookupConnection(BlockDiagramModel model, AnchorPoint origin, AnchorPoint terminus)LookupConnection(BlockDiagramModel model, AnchorPointId origin, AnchorPointId terminus)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchorPointgetOrigin()AnchorPointgetTerminus()
 
- 
- 
- 
Field Detail- 
modelprotected final BlockDiagramModel model 
 - 
originprotected final AnchorPointId origin 
 - 
terminusprotected final AnchorPointId terminus 
 
- 
 - 
Constructor Detail- 
LookupConnectionpublic LookupConnection(BlockDiagramModel model, AnchorPoint origin, AnchorPoint terminus) 
 - 
LookupConnectionpublic LookupConnection(BlockDiagramModel model, AnchorPointId origin, AnchorPointId terminus) 
 
- 
 - 
Method Detail- 
getOriginpublic AnchorPoint getOrigin() - Specified by:
- getOriginin interface- Connection
- Returns:
- The origin anchorpoint. May return null if this connection is no longer valid.
 
 - 
getTerminuspublic AnchorPoint getTerminus() - Specified by:
- getTerminusin interface- Connection
- Returns:
- The terminus anchorpoint. May return null if this connection is no longer valid.
 
 
- 
 
-