| Package | Description |
|---|---|
| edu.mit.blocks.codeblocks | |
| edu.mit.blocks.renderable | |
| edu.mit.blocks.workspace | |
| edu.mit.blocks.workspace.typeblocking |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockStub
BlockStub are a special form of blocks that provide a particular
reference to its "parent" block. |
| Modifier and Type | Method and Description |
|---|---|
Block |
BlockStub.getParent()
Returns the parent block of this stub
|
static Block |
Block.loadBlockFrom(Workspace workspace,
org.w3c.dom.Node node,
java.util.HashMap<java.lang.Long,java.lang.Long> idMapping)
Loads Block information from the specified node and return a Block
instance with the loaded information
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CommandRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2) |
boolean |
SocketRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link by matching their socket kind; false if not.
|
boolean |
LinkRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link; false if not
|
boolean |
InfixRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link; false if not
|
static BlockLink |
BlockLinkChecker.canLink(Workspace workspace,
Block block1,
Block block2,
BlockConnector con1,
BlockConnector con2)
Returns a BlockLink instance if the two specified blocks can connect at the specified
block connectors at each block; null if no link is possible.
|
boolean |
CustomBlockShapeSet.checkCustomShapes(Block b,
java.awt.geom.Point2D[] cornerPoints,
int labelsWidth,
int totalSocketHeight)
Checks if the given block is a "special shape" that has custom dimensions.
|
static BlockLink |
BlockLink.getBlockLink(Workspace workspace,
Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Factory method for creating BlockLink objects
|
static BlockConnector |
BlockLinkChecker.getPlugEquivalent(Block b) |
static java.lang.Iterable<BlockConnector> |
BlockLinkChecker.getSocketEquivalents(Block b) |
static java.lang.Iterable<java.lang.Long> |
BlockStub.getStubsOfParent(Workspace workspace,
Block block)
Returns a list of the block ids of the specified parent's stubs
|
static boolean |
BlockLinkChecker.hasPlugEquivalent(Block b) |
| Modifier and Type | Method and Description |
|---|---|
Block |
RenderableBlock.getBlock()
Shortcut to get block with current BlockID of this renderable block.
|
| Modifier and Type | Method and Description |
|---|---|
static RenderableBlock |
BlockUtilities.cloneBlock(Block myblock) |
static boolean |
BlockUtilities.isLabelValid(Block block,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
Block |
WorkspaceEnvironment.getBlock(java.lang.Long blockID) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Block> |
Workspace.getBlocks()
Returns the set of all Blocks in the Workspace.
|
java.lang.Iterable<Block> |
Workspace.getBlocksFromGenus(java.lang.String genusName)
Returns all the Blocks of the specified genus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WorkspaceEnvironment.addBlock(Block block) |
| Modifier and Type | Method and Description |
|---|---|
void |
FocusTraversalManager.setFocus(Block block)
Sets focus to block
|