codeblocks
Class CustomBlockShapeSet

java.lang.Object
  extended by codeblocks.CustomBlockShapeSet

public abstract class CustomBlockShapeSet
extends java.lang.Object


Nested Class Summary
 class CustomBlockShapeSet.CustomBlockShape
          Internal CustomBlockShape class.
 
Field Summary
 java.util.ArrayList<CustomBlockShapeSet.CustomBlockShape> customBlockShapes
          Contains all of the custom block shapes that are being used in a project.
 
Constructor Summary
CustomBlockShapeSet()
           
 
Method Summary
protected  void addCustomBlockShape(CustomBlockShapeSet.CustomBlockShape customBlockShape)
          Add CustomBlockShape to the array of customBlockShapes.
 boolean checkCustomShapes(Block b, java.awt.geom.Point2D[] cornerPoints, int labelsWidth, int totalSocketHeight)
          Checks if the given block is a "special shape" that has custom dimensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customBlockShapes

public java.util.ArrayList<CustomBlockShapeSet.CustomBlockShape> customBlockShapes
Contains all of the custom block shapes that are being used in a project.

Constructor Detail

CustomBlockShapeSet

public CustomBlockShapeSet()
Method Detail

addCustomBlockShape

protected void addCustomBlockShape(CustomBlockShapeSet.CustomBlockShape customBlockShape)
Add CustomBlockShape to the array of customBlockShapes.


checkCustomShapes

public boolean checkCustomShapes(Block b,
                                 java.awt.geom.Point2D[] cornerPoints,
                                 int labelsWidth,
                                 int totalSocketHeight)
Checks if the given block is a "special shape" that has custom dimensions. CornerPoints is an array with array order Point2D topLeftCorner, Point2D topRightCorner, Point2D botLeftCorner, Point2D botRightCorner.