|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrenderable.BlockUtilities
public class BlockUtilities
Constructor Summary | |
---|---|
BlockUtilities()
|
Method Summary | |
---|---|
static boolean |
blockExists(BlockNode node)
Checks to see if the block still exists |
static RenderableBlock |
cloneBlock(Block myblock)
|
static void |
deleteBlock(RenderableBlock block)
|
static java.lang.String |
disambiguousStringRep(RenderableBlock block)
Creates a string representation for the given RenderableBlock that is disambiguated from string representations for blocks with the same label by appending socket information to the end of the block's label. |
static java.util.List<TextualFactoryBlock> |
getAllMatchingBlocks(java.lang.String keyword)
|
static RenderableBlock |
getBlock(java.lang.String genusName,
java.lang.String label)
Returns a new RenderableBlock instance with the matching genusName. |
static java.util.List<TextualFactoryBlock> |
getDigits(java.lang.String digits)
|
static java.util.List<TextualFactoryBlock> |
getPlusBlocks(java.lang.String plus)
|
static boolean |
isLabelValid(Block block,
java.lang.String label)
|
static boolean |
isLabelValid(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 BlockNode |
makeNodeWithChildren(java.lang.Long blockID)
|
static BlockNode |
makeNodeWithStack(java.lang.Long blockID)
|
static RenderableBlock |
makeRenderable(BlockNode node,
WorkspaceWidget widget)
|
static void |
reset()
|
static void |
setZoomLevel(double newZoom)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockUtilities()
Method Detail |
---|
public static void reset()
public static void setZoomLevel(double newZoom)
public static boolean isLabelValid(java.lang.Long blockID, java.lang.String label)
label
- the String block label to test
public static boolean isLabelValid(Block block, java.lang.String label)
public static void deleteBlock(RenderableBlock block)
public static RenderableBlock cloneBlock(Block myblock)
public static java.lang.String disambiguousStringRep(RenderableBlock block)
block
- the FactoryRenderableBlock to create a string representation of
public static java.util.List<TextualFactoryBlock> getAllMatchingBlocks(java.lang.String keyword)
keyword
-
public static java.util.List<TextualFactoryBlock> getPlusBlocks(java.lang.String plus)
plus
-
public static java.util.List<TextualFactoryBlock> getDigits(java.lang.String digits)
digits
-
public static RenderableBlock getBlock(java.lang.String genusName, java.lang.String label)
genusName
- label
-
public static BlockNode makeNodeWithChildren(java.lang.Long blockID)
public static BlockNode makeNodeWithStack(java.lang.Long blockID)
public static boolean blockExists(BlockNode node)
public static RenderableBlock makeRenderable(BlockNode node, WorkspaceWidget widget)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |