Interface BlockDiagramModel
- All Known Implementing Classes:
- PipelineBlockModel
public interface BlockDiagramModel
A model of a block diagram. This model is what drives each tab of a block and connector workspace.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a new block to this model.voidaddChangeListener(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.Find the block with the given id, or null if no such block existsProvide an iterable collection for all the blocks in this modelIf 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 setThe name of the diagram will be used as the tab nameThe size of the block and connector diagram canvasThe 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(ChangeListener listener) voidsetDiagramSize(Dimension dim) 
- 
Method Details- 
getResourcePathResourcePath getResourcePath()The resource path of the project resource this block model is contained in
- 
getDiagramNameString getDiagramName()The name of the diagram will be used as the tab name
- 
getDiagramSizeDimension getDiagramSize()The size of the block and connector diagram canvas
- 
setDiagramSize
- 
getConnectedSetRootUUID 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
- 
getBlockFind the block with the given id, or null if no such block exists
- 
addBlockAdd a new block to this model. You must fire a change after this
- 
deleteBlockDelete the given block from the model. You must fire a change after this
- 
getBlocksProvide an iterable collection for all the blocks in this model
- 
isConnectionValidCheck whether a connection between the given anchor points is semantically valid or not
- 
addChangeListener
- 
removeChangeListener
- 
addConnectionAdd a connection between two blocks. You must fire a change after this
- 
deleteConnectionRemove a connection. You must fire a change after this.
- 
getConnectionsCollection<Connection> getConnections()
 
-