| Package | Description |
|---|---|
| edu.mit.blocks.codeblocks | |
| edu.mit.blocks.codeblockutil | |
| edu.mit.blocks.controller | |
| edu.mit.blocks.renderable | |
| edu.mit.blocks.workspace | |
| edu.mit.blocks.workspace.typeblocking |
| Modifier and Type | Method and Description |
|---|---|
Workspace |
Block.getWorkspace()
Returns the workspace that this block is living in
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BlockLinkChecker.addRule(Workspace workspace,
LinkRule rule)
Adds a rule to the end of this checker's list of rules.
|
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 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 BlockLink |
BlockLinkChecker.getWeakLink(Workspace workspace,
RenderableBlock rblock1,
java.lang.Iterable<RenderableBlock> otherBlocks)
NOTE: ALWAYS prefer BlockLinkChecker.getLink over this method.
|
static BlockConnector |
BlockConnector.instantiateFromState(Workspace workspace,
java.lang.Object memento)
This is a way of generating a BlockConnector from a memento.
|
static BlockConnector |
BlockConnector.loadBlockConnector(Workspace workspace,
org.w3c.dom.Node node,
java.util.HashMap<java.lang.Long,java.lang.Long> idMapping)
Loads information for a single BlockConnector and returns an instance
of BlockConnector with the loaded information
|
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
|
static void |
BlockGenus.loadBlockGenera(Workspace workspace,
org.w3c.dom.Element root)
Loads the all the initial BlockGenuses and BlockGenus families of this language
|
static void |
BlockStub.parentConnectorsChanged(Workspace workspace,
java.lang.Long parentID)
Updates the BlocksStubs associated with the parent of its new page label
|
static void |
BlockStub.parentNameChanged(Workspace workspace,
java.lang.String oldParentName,
java.lang.String newParentName,
java.lang.Long parentID)
Updates BlockStub hashmaps and the BlockStubs of the parent of its new name
|
static void |
BlockStub.parentPageLabelChanged(Workspace workspace,
java.lang.String newPageLabel,
java.lang.Long parentID)
Updates the BlockStubs associated with the parent of its new page label
|
static void |
BlockStub.parentPlugChanged(Workspace workspace,
java.lang.Long parentID,
java.lang.String kind)
Updates the plug on caller stubs associated with the given parent.
|
static void |
BlockStub.putNewParentInStubMap(Workspace workspace,
java.lang.Long blockID)
Saves the parent block information with the specified blockID in the Stub Map
|
static java.lang.Long |
Block.translateLong(Workspace workspace,
java.lang.Long input,
java.util.HashMap<java.lang.Long,java.lang.Long> mapping) |
| Constructor and Description |
|---|
Block(Workspace workspace,
java.lang.String genusName)
Constructs a new
Block instance. |
Block(Workspace workspace,
java.lang.String genusName,
boolean linkToStubs)
Constructs a new
Block instance. |
Block(Workspace workspace,
java.lang.String genusName,
java.lang.String label)
Constructs a new
Block instance. |
Block(Workspace workspace,
java.lang.String genusName,
java.lang.String label,
boolean linkToStubs)
Constructs a new
Block instance. |
BlockConnector(Workspace workspace,
java.lang.String kind,
BlockConnector.PositionType positionType,
java.lang.String label,
boolean isLabelEditable,
boolean isExpandable,
java.lang.Long connBlockID)
Constructs a new
BlockConnector |
BlockConnector(Workspace workspace,
java.lang.String kind,
BlockConnector.PositionType positionType,
java.lang.String label,
boolean isLabelEditable,
boolean isExpandable,
java.lang.String expandGroup,
java.lang.Long connBlockID)
Constructs a new
BlockConnector |
BlockConnector(Workspace workspace,
java.lang.String label,
java.lang.String kind,
boolean isLabelEditable,
boolean isExpandable)
Constructs a new
BlockConnector with the specified label and kind. |
BlockConnector(Workspace workspace,
java.lang.String kind,
java.lang.String label,
java.lang.Long socketBlockID)
Constructs a new
BlockConnector with a single position |
BlockStub(Workspace workspace,
java.lang.Long initParentID,
java.lang.String parentGenus,
java.lang.String parentName,
java.lang.String stubGenus)
Constructs a new
BlockStub instance using the specified
genus name of its parent block, the block id of its parent, the block name of parent
and its stub genus. |
CommandRule(Workspace workspace) |
CompilerException(CompilerException.Error error,
Workspace workspace,
java.lang.Long illegalBlockID) |
JComponentDragHandler(Workspace workspace,
javax.swing.JComponent jc)
Creates a new instance of a JComponentDragHandler with a pointer to the
given JComponent.
|
| Constructor and Description |
|---|
GlassExplorer(Workspace workspace)
Constructor
|
Navigator(Workspace workspace)
Constructs new navigator with an empty collection of canvases.
|
Navigator(Workspace workspace,
Navigator.Type UIModel) |
| Modifier and Type | Method and Description |
|---|---|
Workspace |
WorkspaceController.getWorkspace() |
| Modifier and Type | Method and Description |
|---|---|
Workspace |
RenderableBlock.getWorkspace()
Returns the workspace in which this block is living in
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BlockUtilities.blockExists(Workspace workspace,
BlockNode node)
Checks to see if the block still exists
|
static java.util.List<TextualFactoryBlock> |
BlockUtilities.getAllMatchingBlocks(Workspace workspace,
java.lang.String keyword) |
static RenderableBlock |
BlockUtilities.getBlock(Workspace workspace,
java.lang.String genusName,
java.lang.String label)
Returns a new RenderableBlock instance with the matching genusName.
|
static java.util.List<TextualFactoryBlock> |
BlockUtilities.getDigits(Workspace workspace,
java.lang.String digits) |
static java.util.List<TextualFactoryBlock> |
BlockUtilities.getPlusBlocks(Workspace workspace,
java.lang.String plus) |
static boolean |
BlockUtilities.isLabelValid(Workspace workspace,
java.lang.Long blockID,
java.lang.String label)
Returns true if the specified label is valid according to the specifications
of this block's genus.
|
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 Comment |
Comment.loadComment(Workspace workspace,
org.w3c.dom.NodeList commentChildren,
RenderableBlock rb)
Loads the comment from a NodeList of comment parts
|
static BlockNode |
BlockUtilities.makeNodeWithChildren(Workspace workspace,
java.lang.Long blockID) |
static BlockNode |
BlockUtilities.makeNodeWithStack(Workspace workspace,
java.lang.Long blockID) |
static RenderableBlock |
BlockUtilities.makeRenderable(Workspace workspace,
BlockNode node,
WorkspaceWidget widget) |
| Constructor and Description |
|---|
BlockLabel(Workspace workspace,
java.lang.String initLabelText,
BlockLabel.Type labelType,
boolean isEditable,
java.awt.Color tooltipBackground)
BlockLabel Constructor
NOTE: A true boolean passed into the isEditable parameter does not necessarily make the label
editable, but a false boolean will make the label uneditable.
|
BlockLabel(Workspace workspace,
java.lang.String initLabelText,
BlockLabel.Type labelType,
boolean isEditable,
long blockID,
boolean hasComboPopup,
java.awt.Color tooltipBackground) |
Comment(Workspace workspace,
java.lang.String initText,
CommentSource source,
java.awt.Color borderColor,
double zoom)
Constructs a Comment
with belonging to source, with text of initText, and initial zoom
The comment's borders will have the color borderColor.
|
CommentLabel(Workspace workspace,
long blockID) |
FactoryRenderableBlock(Workspace workspace,
WorkspaceWidget widget,
java.lang.Long blockID)
Constructs a new FactoryRenderableBlock instance.
|
RenderableBlock(Workspace workspace,
WorkspaceWidget parent,
java.lang.Long blockID)
Constructs a new RenderableBlock instance with the specified parent
WorkspaceWidget and Long blockID of its associated Block
|
| Modifier and Type | Method and Description |
|---|---|
Workspace |
WorkspaceEvent.getWorkspace()
Returns a reference on the workspace that is currently being used
|
| Modifier and Type | Method and Description |
|---|---|
static Page |
Page.getBlankPage(Workspace workspace)
Constructs a new Page
|
static void |
PageDrawerLoadingUtils.loadBlockDrawerSets(Workspace workspace,
org.w3c.dom.Element root,
FactoryManager manager) |
static void |
PageDrawerLoadingUtils.loadPagesAndDrawers(Workspace workspace,
org.w3c.dom.Element root,
FactoryManager manager) |
| Constructor and Description |
|---|
BlockCanvas(Workspace workspace)
Constructs BlockCanvas and subscribes
this BlockCanvas to PageChange events
|
FactoryManager(Workspace workspace)
Constucts new Factorymanager
|
MiniMap(Workspace workspace) |
Page(Workspace workspace,
java.lang.String name)
Constructs a new Page
|
Page(Workspace workspace,
java.lang.String name,
int pageWidth,
int pageHeight,
java.lang.String pageDrawer)
Constructs a new Page
|
Page(Workspace workspace,
java.lang.String name,
int pageWidth,
int pageHeight,
java.lang.String pageDrawer,
boolean inFullview,
java.awt.Color defaultColor,
boolean isCollapsible) |
PageDivider(Workspace workspace,
Page left) |
TrashCan(Workspace workspace,
java.awt.Image trashCanImage,
java.awt.Image openedTrashCanImage) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
java.lang.Long blockID,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
java.lang.Long blockID,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
java.lang.String oldName,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
java.lang.String oldName,
int eventType,
boolean userSpawned) |
ZoomSlider(Workspace workspace)
Constructs a new ZoomSlider
|
| Modifier and Type | Method and Description |
|---|---|
static void |
TypeBlockManager.copyBlock(Workspace workspace) |
static void |
TypeBlockManager.pasteBlock(Workspace workspace) |
static void |
KeyInputMap.processKeyChar(Workspace workspace,
java.awt.event.KeyEvent key)
Processes user-generated keyEvent.
|
| Constructor and Description |
|---|
AutoCompletePanel(Workspace workspace)
Constructs AutoCompletePanel
|
BlockDropAnimator(Workspace workspace,
java.awt.Point focusPoint,
RenderableBlock childBlock,
RenderableBlock parentBlock)
Constructs a TypeBlockTimer.
|
FocusTraversalManager(Workspace workspace) |
TypeBlockManager(Workspace workspace,
BlockCanvas component)
TypeBlockManager Constructor
|