public interface BlockDiagramModel
Modifier and Type | Method and Description |
---|---|
void |
addBlock(Block block)
Add a new block to this model.
|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
void |
addConnection(AnchorPoint origin,
AnchorPoint terminus)
Add a connection between two blocks.
|
void |
deleteBlock(Block block)
Delete the given block from the model.
|
void |
deleteConnection(AnchorPoint origin,
AnchorPoint terminus)
Remove a connection.
|
Block |
getBlock(java.util.UUID id)
Find the block with the given id, or null if no such block exists
|
java.lang.Iterable<? extends Block> |
getBlocks()
Provide an iterable collection for all the blocks in this model
|
java.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
|
java.util.Collection<Connection> |
getConnections() |
java.lang.String |
getDiagramName()
The name of the diagram will be used as the tab name
|
java.awt.Dimension |
getDiagramSize()
The size of the block and connector diagram canvas
|
long |
getResourceId()
The resource id of the project resource this block model is contained in
|
boolean |
isConnectionValid(AnchorPoint addingStartAnchor,
AnchorPoint addingEndAnchor)
Check whether a connection between the given anchor points is semantically valid or not
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
setDiagramSize(java.awt.Dimension dim) |
long getResourceId()
java.lang.String getDiagramName()
java.awt.Dimension getDiagramSize()
void setDiagramSize(java.awt.Dimension dim)
java.util.UUID getConnectedSetRoot()
Block getBlock(java.util.UUID id)
void addBlock(Block block)
void deleteBlock(Block block)
java.lang.Iterable<? extends Block> getBlocks()
boolean isConnectionValid(AnchorPoint addingStartAnchor, AnchorPoint addingEndAnchor)
void addChangeListener(javax.swing.event.ChangeListener listener)
void removeChangeListener(javax.swing.event.ChangeListener listener)
void addConnection(AnchorPoint origin, AnchorPoint terminus)
void deleteConnection(AnchorPoint origin, AnchorPoint terminus)
java.util.Collection<Connection> getConnections()