Class PipelineBlockModel
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.AbstractChangeable
- 
- com.inductiveautomation.ignition.alarming.designer.workspace.PipelineBlockModel
 
 
- 
- All Implemented Interfaces:
- Changeable,- BlockDiagramModel
 
 public class PipelineBlockModel extends AbstractChangeable implements BlockDiagramModel 
- 
- 
Field SummaryFields Modifier and Type Field Description static Property<java.awt.Dimension>SIZE- 
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeablechangeEvent, listenerList
 
- 
 - 
Constructor SummaryConstructors Constructor Description PipelineBlockModel(DesignerContext context, ProjectResource resource)PipelineBlockModel(DesignerContext context, ResourcePath resourcePath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlock(Block block)Add a new block to this model.voidaddConnection(AnchorPoint origin, AnchorPoint terminus)Add a connection between two blocks.voidaddConnection(AnchorPoint origin, java.util.UUID destinationBlockId)voiddeleteBlock(Block block)Delete the given block from the model.voiddeleteConnection(AnchorPoint origin, AnchorPoint terminus)Remove a connection.PipelineBlockPrototypefindPrototype(java.lang.String factoryId)BlockgetBlock(java.util.UUID id)Find the block with the given id, or null if no such block existsjava.lang.Iterable<? extends Block>getBlocks()Provide an iterable collection for all the blocks in this modeljava.util.UUIDgetConnectedSetRoot()If this diagram logically supports the idea of a "connected set" of vertices, this is the ID of the block that is the root of the connected setjava.util.Collection<Connection>getConnections()java.lang.StringgetDiagramName()The name of the diagram will be used as the tab namejava.awt.DimensiongetDiagramSize()The size of the block and connector diagram canvasPipelineDescriptorgetPipeline()ResourcePathgetResourcePath()The resource path of the project resource this block model is contained inbooleanisConnectionValid(AnchorPoint addingStartAnchor, AnchorPoint addingEndAnchor)Check whether a connection between the given anchor points is semantically valid or notvoidsetDiagramSize(java.awt.Dimension dim)- 
Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeableaddChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.designer.blockandconnector.model.BlockDiagramModeladdChangeListener, removeChangeListener
 
- 
 
- 
- 
- 
Field Detail- 
SIZEpublic static final Property<java.awt.Dimension> SIZE 
 
- 
 - 
Constructor Detail- 
PipelineBlockModelpublic PipelineBlockModel(DesignerContext context, ResourcePath resourcePath) throws SerializationException - Throws:
- SerializationException
 
 - 
PipelineBlockModelpublic PipelineBlockModel(DesignerContext context, ProjectResource resource) throws SerializationException - Throws:
- SerializationException
 
 
- 
 - 
Method Detail- 
getPipelinepublic PipelineDescriptor getPipeline() 
 - 
getResourcePathpublic ResourcePath getResourcePath() Description copied from interface:BlockDiagramModelThe resource path of the project resource this block model is contained in- Specified by:
- getResourcePathin interface- BlockDiagramModel
 
 - 
getDiagramNamepublic java.lang.String getDiagramName() Description copied from interface:BlockDiagramModelThe name of the diagram will be used as the tab name- Specified by:
- getDiagramNamein interface- BlockDiagramModel
 
 - 
getDiagramSizepublic java.awt.Dimension getDiagramSize() Description copied from interface:BlockDiagramModelThe size of the block and connector diagram canvas- Specified by:
- getDiagramSizein interface- BlockDiagramModel
 
 - 
setDiagramSizepublic void setDiagramSize(java.awt.Dimension dim) - Specified by:
- setDiagramSizein interface- BlockDiagramModel
 
 - 
getBlockpublic Block getBlock(java.util.UUID id) Description copied from interface:BlockDiagramModelFind the block with the given id, or null if no such block exists- Specified by:
- getBlockin interface- BlockDiagramModel
 
 - 
getConnectedSetRootpublic java.util.UUID getConnectedSetRoot() Description copied from interface:BlockDiagramModelIf this diagram logically supports the idea of a "connected set" of vertices, this is the ID of the block that is the root of the connected set- Specified by:
- getConnectedSetRootin interface- BlockDiagramModel
 
 - 
isConnectionValidpublic boolean isConnectionValid(AnchorPoint addingStartAnchor, AnchorPoint addingEndAnchor) Description copied from interface:BlockDiagramModelCheck whether a connection between the given anchor points is semantically valid or not- Specified by:
- isConnectionValidin interface- BlockDiagramModel
 
 - 
addBlockpublic void addBlock(Block block) Description copied from interface:BlockDiagramModelAdd a new block to this model. You must fire a change after this- Specified by:
- addBlockin interface- BlockDiagramModel
 
 - 
deleteBlockpublic void deleteBlock(Block block) Description copied from interface:BlockDiagramModelDelete the given block from the model. You must fire a change after this- Specified by:
- deleteBlockin interface- BlockDiagramModel
 
 - 
getBlockspublic java.lang.Iterable<? extends Block> getBlocks() Description copied from interface:BlockDiagramModelProvide an iterable collection for all the blocks in this model- Specified by:
- getBlocksin interface- BlockDiagramModel
 
 - 
findPrototypepublic PipelineBlockPrototype findPrototype(java.lang.String factoryId) 
 - 
addConnectionpublic void addConnection(AnchorPoint origin, AnchorPoint terminus) Description copied from interface:BlockDiagramModelAdd a connection between two blocks. You must fire a change after this- Specified by:
- addConnectionin interface- BlockDiagramModel
 
 - 
addConnectionpublic void addConnection(AnchorPoint origin, java.util.UUID destinationBlockId) 
 - 
deleteConnectionpublic void deleteConnection(AnchorPoint origin, AnchorPoint terminus) Description copied from interface:BlockDiagramModelRemove a connection. You must fire a change after this.- Specified by:
- deleteConnectionin interface- BlockDiagramModel
 
 - 
getConnectionspublic java.util.Collection<Connection> getConnections() - Specified by:
- getConnectionsin interface- BlockDiagramModel
 
 
- 
 
-