public interface 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.
|
void setPosition(double positionX, double positionY, boolean isLeftToRight, LayoutParameters layoutParameters)
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.double getTopHeight(LayoutParameters layoutParameters)
layoutParameters
- Parameters.double getBottomHeight(LayoutParameters layoutParameters)
layoutParameters
- Parameters.double getWidth(LayoutParameters layoutParameters)
layoutParameters
- Parametersint getNofLayers()
java.lang.String getName()