| Package | Description |
|---|---|
| edu.mit.blocks.codeblocks |
| Modifier and Type | Method and Description |
|---|---|
BlockConnector.PositionType |
BlockConnector.getPositionType()
Returns the PositionType of this
|
static BlockConnector.PositionType |
BlockConnector.PositionType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockConnector.PositionType[] |
BlockConnector.PositionType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
BlockConnector |
Block.addSocket(int index,
java.lang.String kind,
BlockConnector.PositionType positionType,
java.lang.String label,
boolean isLabelEditable,
boolean isExpandable,
java.lang.Long blockID)
Adds another socket to this.
|
void |
Block.addSocket(java.lang.String kind,
BlockConnector.PositionType positionType,
java.lang.String label,
boolean isLabelEditable,
boolean isExpandable,
java.lang.Long blockID)
Adds another socket to this.
|
void |
Block.setPlug(java.lang.String kind,
BlockConnector.PositionType positionType,
java.lang.String label,
boolean isLabelEditable,
java.lang.Long blockID)
Sets the plug of this.
|
void |
BlockConnector.setPositionType(BlockConnector.PositionType pos)
Sets the position type of this connector
|
boolean |
Block.setSocketAt(int index,
java.lang.String kind,
BlockConnector.PositionType pos,
java.lang.String label,
boolean isLabelEditable,
boolean isExpandable,
java.lang.Long blockID)
Replaces the socket at the specified index with the new specified parameters
|
| Constructor and Description |
|---|
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 |