Interface BlockDiagramModel
- 
- All Known Implementing Classes:
- PipelineBlockModel
 
 public interface BlockDiagramModelA model of a block diagram. This model is what drives each tab of a block and connector workspace.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBlock(Block block)Add a new block to this model.voidaddChangeListener(javax.swing.event.ChangeListener listener)voidaddConnection(AnchorPoint origin, AnchorPoint terminus)Add a connection between two blocks.voiddeleteBlock(Block block)Delete the given block from the model.voiddeleteConnection(AnchorPoint origin, AnchorPoint terminus)Remove a connection.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 canvasResourcePathgetResourcePath()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 notvoidremoveChangeListener(javax.swing.event.ChangeListener listener)voidsetDiagramSize(java.awt.Dimension dim)
 
- 
- 
- 
Method Detail- 
getResourcePathResourcePath getResourcePath() The resource path of the project resource this block model is contained in
 - 
getDiagramNamejava.lang.String getDiagramName() The name of the diagram will be used as the tab name
 - 
getDiagramSizejava.awt.Dimension getDiagramSize() The size of the block and connector diagram canvas
 - 
setDiagramSizevoid setDiagramSize(java.awt.Dimension dim) 
 - 
getConnectedSetRootjava.util.UUID getConnectedSetRoot() 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 set
 - 
getBlockBlock getBlock(java.util.UUID id) Find the block with the given id, or null if no such block exists
 - 
addBlockvoid addBlock(Block block) Add a new block to this model. You must fire a change after this
 - 
deleteBlockvoid deleteBlock(Block block) Delete the given block from the model. You must fire a change after this
 - 
getBlocksjava.lang.Iterable<? extends Block> getBlocks() Provide an iterable collection for all the blocks in this model
 - 
isConnectionValidboolean isConnectionValid(AnchorPoint addingStartAnchor, AnchorPoint addingEndAnchor) Check whether a connection between the given anchor points is semantically valid or not
 - 
addChangeListenervoid addChangeListener(javax.swing.event.ChangeListener listener) 
 - 
removeChangeListenervoid removeChangeListener(javax.swing.event.ChangeListener listener) 
 - 
addConnectionvoid addConnection(AnchorPoint origin, AnchorPoint terminus) Add a connection between two blocks. You must fire a change after this
 - 
deleteConnectionvoid deleteConnection(AnchorPoint origin, AnchorPoint terminus) Remove a connection. You must fire a change after this.
 - 
getConnectionsjava.util.Collection<Connection> getConnections() 
 
- 
 
-