| Package | Description |
|---|---|
| edu.mit.blocks.codeblocks | |
| edu.mit.blocks.renderable | |
| edu.mit.blocks.workspace | |
| edu.mit.blocks.workspace.typeblocking |
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
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.
|
| Constructor and Description |
|---|
BlockShape(RenderableBlock rb)
BlockShape constructor
|
InfixBlockShape(RenderableBlock rb) |
| Modifier and Type | Class and Description |
|---|---|
class |
FactoryRenderableBlock
FactoryRenderableBlock extends RenderableBlock and is used within FactoryBlockDrawers.
|
| Modifier and Type | Method and Description |
|---|---|
static RenderableBlock |
BlockUtilities.cloneBlock(Block myblock) |
RenderableBlock |
FactoryRenderableBlock.createNewInstance()
Returns a new RenderableBlock instance (and creates its associated Block) instance of the same genus as this.
|
static RenderableBlock |
BlockUtilities.getBlock(Workspace workspace,
java.lang.String genusName,
java.lang.String label)
Returns a new RenderableBlock instance with the matching genusName.
|
static RenderableBlock |
RenderableBlock.loadBlockNode(Workspace workspace,
org.w3c.dom.Node blockNode,
WorkspaceWidget parent,
java.util.HashMap<java.lang.Long,java.lang.Long> idMapping)
Loads a RenderableBlock and its related Block instance from the specified
blockNode; returns null if no RenderableBlock was loaded.
|
static RenderableBlock |
BlockUtilities.makeRenderable(Workspace workspace,
BlockNode node,
WorkspaceWidget widget) |
| Modifier and Type | Method and Description |
|---|---|
static void |
BlockUtilities.deleteBlock(RenderableBlock block) |
static java.lang.String |
BlockUtilities.disambiguousStringRep(RenderableBlock block)
Creates a string representation for the given RenderableBlock that
is disambiguated from string representations for blocks with the same label
by appending socket information to the end of the block's label.
|
static Comment |
Comment.loadComment(Workspace workspace,
org.w3c.dom.NodeList commentChildren,
RenderableBlock rb)
Loads the comment from a NodeList of comment parts
|
static void |
RenderableBlock.stopDragging(RenderableBlock renderable,
WorkspaceWidget widget)
This method is called when this RenderableBlock is plugged into another
RenderableBlock that has finished dragging.
|
| Constructor and Description |
|---|
RBHighlightHandler(RenderableBlock rb) |
| Modifier and Type | Method and Description |
|---|---|
RenderableBlock |
WorkspaceEnvironment.getRenderableBlock(java.lang.Long blockID)
Returns the Renderable specified by blockID; null if RenderableBlock does not exist
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<RenderableBlock> |
WorkspaceWidget.getBlocks()
Returns the set of blocks that abstract "lives" inside this widget.
|
java.util.Collection<RenderableBlock> |
TrashCan.getBlocks() |
java.lang.Iterable<RenderableBlock> |
Subset.getBlocks() |
java.util.Collection<RenderableBlock> |
Page.getBlocks() |
java.util.Collection<RenderableBlock> |
MiniMap.getBlocks() |
java.util.Collection<RenderableBlock> |
FactoryManager.getBlocks() |
java.lang.Iterable<RenderableBlock> |
BlockCanvas.getBlocks() |
java.util.Collection<RenderableBlock> |
FactoryManager.getDynamicBlocks(java.lang.String name) |
java.lang.Iterable<RenderableBlock> |
WorkspaceEnvironment.getRenderableBlocks() |
java.lang.Iterable<RenderableBlock> |
Workspace.getRenderableBlocks()
Returns the set of all RenderableBlocks in the Workspace.
|
java.lang.Iterable<RenderableBlock> |
Workspace.getRenderableBlocksFromGenus(java.lang.String genusName)
Returns all the RenderableBlocks of the specified genus.
|
java.lang.Iterable<RenderableBlock> |
Page.getSearchableElements() |
java.lang.Iterable<RenderableBlock> |
MiniMap.getSearchableElements()
Specified by codeblocks.workspace.SearchableContainer interface
|
java.util.Collection<RenderableBlock> |
FactoryManager.getStaticBlocks(java.lang.String name) |
java.lang.Iterable<RenderableBlock> |
Workspace.getTopLevelBlocks()
Returns the top level blocks in the Workspace (blocks that are
parents of stacks)
|
java.util.Collection<RenderableBlock> |
Page.getTopLevelBlocks() |
java.lang.Iterable<RenderableBlock> |
BlockCanvas.getTopLevelBlocks() |
java.util.ArrayList<RenderableBlock> |
Page.loadPageFrom(org.w3c.dom.Node pageNode,
boolean importingPage) |
| Modifier and Type | Method and Description |
|---|---|
void |
WorkspaceWidget.addBlock(RenderableBlock block)
Adds the specified block to this widget interally and graphically.
|
void |
TrashCan.addBlock(RenderableBlock block) |
void |
Page.addBlock(RenderableBlock block) |
void |
MiniMap.addBlock(RenderableBlock block) |
void |
FactoryManager.addBlock(RenderableBlock block) |
void |
FactoryManager.addDynamicBlock(RenderableBlock block,
java.lang.String drawer) |
void |
WorkspaceEnvironment.addRenderableBlock(RenderableBlock block) |
void |
FactoryManager.addStaticBlock(RenderableBlock block,
java.lang.String drawer)
Add blocks to drawer if drawer can be found.
|
void |
MiniMap.animateAutoCenter(RenderableBlock block)
Animate A fly to block's location on the MiniMap and BlockCanvas
|
void |
WorkspaceWidget.blockDragged(RenderableBlock block)
Called by RenderableBlocks as they are dragged over this Widget.
|
void |
TrashCan.blockDragged(RenderableBlock block) |
void |
Page.blockDragged(RenderableBlock block) |
void |
MiniMap.blockDragged(RenderableBlock block) |
void |
FactoryManager.blockDragged(RenderableBlock block) |
void |
MiniMap.blockDragged(RenderableBlock block,
java.awt.Point WorkspacePoint) |
void |
WorkspaceWidget.blockDropped(RenderableBlock block)
Called by RenderableBlocks that get "dropped" onto this Widget
|
void |
TrashCan.blockDropped(RenderableBlock block) |
void |
Page.blockDropped(RenderableBlock block) |
void |
MiniMap.blockDropped(RenderableBlock block) |
void |
FactoryManager.blockDropped(RenderableBlock block) |
void |
WorkspaceWidget.blockEntered(RenderableBlock block)
Called when a RenderableBlock is being dragged and goes from being
outside this Widget to being inside the Widget.
|
void |
TrashCan.blockEntered(RenderableBlock block)
Called when a RenderableBlock is being dragged and goes from being
outside this Widget to being inside the Widget.
|
void |
Page.blockEntered(RenderableBlock block) |
void |
MiniMap.blockEntered(RenderableBlock block)
Block action methods not interested by MiniMap.
|
void |
FactoryManager.blockEntered(RenderableBlock block) |
void |
WorkspaceWidget.blockExited(RenderableBlock block)
Called when a RenderableBlock that was being dragged over this Widget
goes from being inside this Widget to being outside the Widget.
|
void |
TrashCan.blockExited(RenderableBlock block)
Called when a RenderableBlock that was being dragged over this Widget
goes from being inside this Widget to being outside the Widget.
|
void |
Page.blockExited(RenderableBlock block) |
void |
MiniMap.blockExited(RenderableBlock block) |
void |
FactoryManager.blockExited(RenderableBlock block) |
Page |
Workspace.getCurrentPage(RenderableBlock block)
Find the page that lies underneath this block
CAN RETURN NULL
|
void |
Page.reformBlockPosition(RenderableBlock block) |
void |
WorkspaceWidget.removeBlock(RenderableBlock block)
Used by RenderableBlocks to tell their originating Widgets that
they're moving somewhere else and so should be removed.
|
void |
TrashCan.removeBlock(RenderableBlock block) |
void |
Page.removeBlock(RenderableBlock block) |
void |
MiniMap.removeBlock(RenderableBlock block) |
void |
FactoryManager.removeBlock(RenderableBlock block) |
void |
FactoryManager.removeDynamicBlock(RenderableBlock block,
java.lang.String drawer) |
void |
FactoryManager.removeStaticBlock(RenderableBlock block,
java.lang.String drawer)
Removes block from specified drawer.
|
void |
BlockCanvas.scrollToShowBlock(RenderableBlock block) |
| Modifier and Type | Method and Description |
|---|---|
void |
WorkspaceWidget.addBlocks(java.util.Collection<RenderableBlock> blocks)
Adds a collection of blocks to this widget internally and graphically.
|
void |
TrashCan.addBlocks(java.util.Collection<RenderableBlock> block) |
void |
Page.addBlocks(java.util.Collection<RenderableBlock> blocks) |
void |
MiniMap.addBlocks(java.util.Collection<RenderableBlock> blocks) |
void |
FactoryManager.addBlocks(java.util.Collection<RenderableBlock> blocks) |
void |
FactoryManager.addDynamicBlocks(java.util.Collection<RenderableBlock> blocks,
java.lang.String drawer) |
void |
Page.addLoadedBlocks(java.util.Collection<RenderableBlock> loadedBlocks,
boolean importingPage) |
void |
FactoryManager.addStaticBlocks(java.util.Collection<RenderableBlock> blocks,
java.lang.String drawer)
Add blocks to drawer if drawer can be found.
|
void |
FactoryManager.addSubsetBlocks(java.util.Collection<RenderableBlock> blocks,
java.lang.String drawerName)
Adds the specified RenderableBlocks to the drawer with the specified drawerName.
|
| Constructor and Description |
|---|
Subset(java.lang.String name,
java.awt.Color color,
java.lang.Iterable<RenderableBlock> blocks) |
| Constructor and Description |
|---|
BlockDropAnimator(Workspace workspace,
java.awt.Point focusPoint,
RenderableBlock childBlock,
RenderableBlock parentBlock)
Constructs a TypeBlockTimer.
|