|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use BlockConnector | |
---|---|
codeblocks | |
renderable |
Uses of BlockConnector in codeblocks |
---|
Methods in codeblocks that return BlockConnector | |
---|---|
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. |
BlockConnector |
Block.getAfterConnector()
Returns the BlockConnector representing the connection to the block after this |
BlockConnector |
Block.getBeforeConnector()
Returns the BlockConnector representing the connection to the block before this |
BlockConnector |
Block.getConnectorTo(java.lang.Long otherBlockID)
Searches for the BlockConnector linking this block to another block |
BlockConnector |
BlockGenus.getInitAfter()
Returns the initial after connector of this |
BlockConnector |
Block.getInitAfter()
Returns the initial after connector of this FORWARDED FROM BLOCK GENUS |
BlockConnector |
BlockGenus.getInitBefore()
Returns the initial before connector of this |
BlockConnector |
Block.getInitBefore()
Returns the initial before connector of this FORWARDED FROM BLOCK GENUS |
BlockConnector |
BlockGenus.getInitPlug()
Returns the initial plug connector of this |
BlockConnector |
Block.getInitPlug()
Returns the initial plug connector of this FORWARDED FROM BLOCK GENUS |
BlockConnector |
BlockLink.getPlug()
|
BlockConnector |
Block.getPlug()
Returns the BlockConnector plug of this |
static BlockConnector |
BlockLinkChecker.getPlugEquivalent(Block b)
|
BlockConnector |
BlockLink.getSocket()
|
BlockConnector |
Block.getSocketAt(int index)
Returns the socket (BlockConnector instance) at the specified index |
static BlockConnector |
BlockConnector.instantiateFromState(java.lang.Object memento)
This is a way of generating a BlockConnector from a memento. |
static BlockConnector |
BlockConnector.loadBlockConnector(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 |
Methods in codeblocks that return types with arguments of type BlockConnector | |
---|---|
java.util.List<java.util.List<BlockConnector>> |
BlockGenus.getExpandGroups()
Returns the expand groups of this. |
java.lang.Iterable<BlockConnector> |
BlockGenus.getInitSockets()
Returns the initial set of sockets of this |
java.lang.Iterable<BlockConnector> |
Block.getInitSockets()
Returns the initial set of sockets of this FORWARDED FROM BLOCK GENUS |
static java.lang.Iterable<BlockConnector> |
BlockLinkChecker.getSocketEquivalents(Block b)
|
java.lang.Iterable<BlockConnector> |
Block.getSockets()
Returns an unmodifiable iterable over a safe copy of the Sockets of this |
Methods in codeblocks with parameters of type BlockConnector | |
---|---|
void |
Block.blockConnected(BlockConnector connectedSocket,
java.lang.Long connectedBlockID)
Informs this Block that a block with id connectedBlockID has connected to the specified connectedSocket |
void |
Block.blockDisconnected(BlockConnector disconnectedSocket)
Informs this Block that a block has disconnected from the specified disconnectedSocket |
boolean |
SocketRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link by matching their socket kind; false if not. |
boolean |
LinkRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link; false if not |
boolean |
InfixRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link; false if not |
boolean |
CommandRule.canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
|
static BlockLink |
BlockLinkChecker.canLink(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(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Factory method for creating BlockLink objects |
static java.awt.Dimension |
BlockConnectorShape.getConnectorDimensions(BlockConnector blockConnector)
Gets the dimension of a given BlockConnector. |
int |
Block.getSocketIndex(BlockConnector socket)
Returns the index number of a given socket |
protected int |
BlockShape.getSocketSpacerHeight(BlockConnector socket,
float defaultHeight)
Returns the height of the spacer associated with a socket if it exists, else it returns the given default height. |
static boolean |
BlockConnectorShape.isCommandConnector(BlockConnector connector)
|
void |
Block.removeSocket(BlockConnector socket)
Removes specified socket |
Constructors in codeblocks with parameters of type BlockConnector | |
---|---|
BlockConnector(BlockConnector con)
Constucts a new BlockConnector by copying the connector information
from the specified con. |
Uses of BlockConnector in renderable |
---|
Methods in renderable that return BlockConnector | |
---|---|
(package private) BlockConnector |
ConnectorTag.getSocket()
|
Methods in renderable with parameters of type BlockConnector | |
---|---|
void |
RenderableBlock.blockConnected(BlockConnector connectedSocket,
long connectedBlockID)
Notifies this renderable block that ITS socket connectedSocket was connected to ANOTHER block with ID connectedBlockID. |
void |
RenderableBlock.blockDisconnected(BlockConnector disconnectedSocket)
Notifies this renderable block that its socket connectedSocket had a block disconnected from it. |
java.awt.Point |
RenderableBlock.getSocketAbstractPoint(BlockConnector socket)
Returns a new Point object that represents the abstract location of this socket's center. |
java.awt.Point |
RenderableBlock.getSocketPixelPoint(BlockConnector socket)
Returns a new Point object that represents the pixel location of this socket's center. |
java.awt.Dimension |
RenderableBlock.getSocketSpaceDimension(BlockConnector socket)
Returns the dimension associated with a socket. |
(package private) static boolean |
SocketLabel.ignoreSocket(BlockConnector socket)
Returns true if the socket label should not be added to this. |
(package private) void |
ConnectorTag.setSocket(BlockConnector conn)
|
void |
RenderableBlock.updateSocketPoint(BlockConnector socket,
java.awt.geom.Point2D point)
Updates the center point location of this socket |
Constructors in renderable with parameters of type BlockConnector | |
---|---|
ConnectorTag(BlockConnector connector)
|
|
SocketLabel(BlockConnector socket,
java.lang.String initLabelText,
BlockLabel.Type labelType,
boolean isEditable,
long blockID)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |