| Package | Description |
|---|---|
| edu.mit.blocks.renderable | |
| edu.mit.blocks.workspace |
| Modifier and Type | Method and Description |
|---|---|
WorkspaceWidget |
RenderableBlock.getParentWidget()
Returns the parent WorkspaceWidget containing this
|
WorkspaceWidget |
CommentSource.getParentWidget()
Returns the parent WorkspaceWidget containing this
|
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
RenderableBlock.setParentWidget(WorkspaceWidget widget)
Sets the parent WorkspaceWidget containing this
|
void |
FactoryRenderableBlock.stopDragging(java.awt.event.MouseEvent e,
WorkspaceWidget w) |
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 |
|---|
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 | Class and Description |
|---|---|
class |
FactoryManager
***********************OVERVIEW**************************
The FactoryManager manages all block factories in the workspace.
|
class |
MiniMap
A MiniMap is a miniturized representation of the
current Workspace's block canvas.
|
class |
Page
A Page serves as both an abstract container of blocks
and also a graphical panel that renders its collection
of blocks.
|
class |
TrashCan |
| Modifier and Type | Method and Description |
|---|---|
WorkspaceWidget |
WorkspaceEvent.getSourceWidget()
Returns the WorkspaceWidget where this event occured.
|
WorkspaceWidget |
Workspace.getWidgetAt(java.awt.Point point)
Returns the WorkspaceWidget currently at the specified point
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<WorkspaceWidget> |
Workspace.getWorkspaceWidgets()
Returns an unmodifiable Iterable over all the WorkspaceWidgets
|
| Modifier and Type | Method and Description |
|---|---|
void |
Workspace.addWidget(WorkspaceWidget widget,
boolean addGraphically,
boolean floatOverCanvas)
Adds the specified widget to this Workspace
|
void |
Workspace.removeWidget(WorkspaceWidget widget)
Removes the specified widget from this Workspace
|
| 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) |
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) |