codeblocks
Class InfixBlockShape

java.lang.Object
  extended by codeblocks.BlockShape
      extended by codeblocks.InfixBlockShape

public class InfixBlockShape
extends BlockShape

Specifies the BlockShape of infix blocks. Infix blocks have two bottom sockets.


Field Summary
 
Fields inherited from class codeblocks.BlockShape
BCS, block, blockBody, blockCornerRadius, blockID, botLeftCorner, botRightCorner, BOTTOM_SOCKET_MIDDLE_SPACER, BOTTOM_SOCKET_SIDE_SPACER, BOTTOM_SOCKET_UPPER_SPACER, BSU, COMMAND_PORT_OFFSET, CORNER_RADIUS, gpBottom, hasCurvedCorners, rb, topLeftCorner, topRightCorner, VARIABLE_DECLARATION_SPACER
 
Constructor Summary
InfixBlockShape(RenderableBlock rb)
           
 
Method Summary
protected  int determineBlockWidth()
          Overrided from BlockShape.
protected  void makeBottomSide()
          Overrided from BlockShape.
 
Methods inherited from class codeblocks.BlockShape
addCustomShapes, determineBlockHeight, getBottomSide, getLeftSide, getRightSide, getSocketSpacerHeight, getTopSide, getTotalHeightOfSockets, makeLeftSide, makeRightSide, makeTopSide, reformArea, setEndPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfixBlockShape

public InfixBlockShape(RenderableBlock rb)
Method Detail

makeBottomSide

protected void makeBottomSide()
Overrided from BlockShape. Takes into account the need to resize the dimensions of an infix block for various cases.

Overrides:
makeBottomSide in class BlockShape

determineBlockWidth

protected int determineBlockWidth()
Overrided from BlockShape. Determines the width of the sum of the bottom sockets and uses it if it is greater than the width determined by the determineBlockWidth in BlockShape. Else, it returns the sum of these two values.

Overrides:
determineBlockWidth in class BlockShape