| Package | Description |
|---|---|
| edu.mit.blocks.codeblocks | |
| edu.mit.blocks.renderable | |
| edu.mit.blocks.workspace |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static BlockLink |
BlockLink.getBlockLink(Workspace workspace,
Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Factory method for creating BlockLink objects
|
static BlockLink |
BlockLinkChecker.getLink(Workspace workspace,
RenderableBlock rblock1,
java.lang.Iterable<RenderableBlock> otherBlocks)
Checks to see if a
RenderableBlocks can connect to other RenderableBlocks. |
static BlockLink |
BlockLinkChecker.getWeakLink(Workspace workspace,
RenderableBlock rblock1,
java.lang.Iterable<RenderableBlock> otherBlocks)
NOTE: ALWAYS prefer BlockLinkChecker.getLink over this method.
|
| Modifier and Type | Method and Description |
|---|---|
BlockLink |
RenderableBlock.getNearbyLink()
Looks for links between this RenderableBlock and others.
|
| Modifier and Type | Method and Description |
|---|---|
BlockLink |
WorkspaceEvent.getSourceLink()
Returns the BlockLink where this event originated, or null if the event type
of this is not block connected or disconnected.
|
| Constructor and Description |
|---|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType,
boolean userSpawned) |