public class DummyBlock extends AbstractBlock
Constructor and Description |
---|
DummyBlock(Block block)
The dummy block takes the same dimensions as its child blocks,
but does not set any position sin the child block.
|
Modifier and Type | Method and Description |
---|---|
double |
getBottomHeight(LayoutParameters layoutParameters)
Returns the bottom height of this block.
|
java.lang.String |
getName() |
int |
getNofLayers() |
double |
getTopHeight(LayoutParameters layoutParameters)
Returns the top height of this block.
|
double |
getWidth(LayoutParameters layoutParameters)
Returns the width of this block.
|
void |
setPosition(double positionX,
double positionY,
boolean isLeftToRight,
LayoutParameters layoutParameters)
Sets the positions (top-left corners) of all contained element blocks.
|
public DummyBlock(Block block)
block
- public void setPosition(double positionX, double positionY, boolean isLeftToRight, LayoutParameters layoutParameters)
Block
positionX
- The X coordinate of the top-left corner of this block.positionY
- The Y coordinate of the top-left corner of this block.isLeftToRight
- Whether horizontal blocks are to be laid out from left to
right (or from right to left).layoutParameters
- Parameters.public double getTopHeight(LayoutParameters layoutParameters)
Block
layoutParameters
- Parameters.public double getBottomHeight(LayoutParameters layoutParameters)
Block
layoutParameters
- Parameters.public double getWidth(LayoutParameters layoutParameters)
Block
layoutParameters
- Parameterspublic int getNofLayers()
public java.lang.String getName()