public interface Arrangement
Blocks
within a BlockContainer.| Modifier and Type | Method and Description |
|---|---|
void |
add(Block block,
java.lang.Object key)
Adds a block and a key which can be used to determine the position of
the block in the arrangement.
|
Size2D |
arrange(BlockContainer container,
java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks within the specified container, subject to the given
constraint.
|
void |
clear()
Clears any cached layout information retained by the arrangement.
|
void add(Block block, java.lang.Object key)
block - the block.key - the key (null permitted).Size2D arrange(BlockContainer container, java.awt.Graphics2D g2, RectangleConstraint constraint)
container - the container (null not permitted).g2 - the graphics device.constraint - the constraint.void clear()