|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodeblocks.InfixRule
public class InfixRule
InfixRule
specifies a rule for Block
linking.
Allows users to insert infix blocks in between two blocks.
Constructor Summary | |
---|---|
InfixRule()
|
Method Summary | |
---|---|
boolean |
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 |
isMandatory()
|
void |
workspaceEventOccurred(WorkspaceEvent e)
Invoked whenever any of the enumerated events specified within WorkspaceEvent occur. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfixRule()
Method Detail |
---|
public boolean canLink(Block block1, Block block2, BlockConnector socket1, BlockConnector socket2)
canLink
in interface LinkRule
block1
- the associated Block
of socket1block2
- the associated Block
of socket2socket1
- a Socket
of block1socket2
- a Socket
of block2
public boolean isMandatory()
isMandatory
in interface LinkRule
public void workspaceEventOccurred(WorkspaceEvent e)
WorkspaceListener
workspaceEventOccurred
in interface WorkspaceListener
e
- WorkspaceEvent object holding information regarding the triggered
event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |