org.jfree.chart.block
Interface Arrangement
- BorderArrangement, CenterArrangement, ColumnArrangement, FlowArrangement, GridArrangement
void | add(Block block, 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, 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.
|
add
public void add(Block block,
Object key)
Adds a block and a key which can be used to determine the position of
the block in the arrangement. This method is called by the container
(you don't need to call this method directly) and gives the arrangement
an opportunity to record the details if they are required.
block
- the block.key
- the key (null
permitted).
arrange
public Size2D arrange(BlockContainer container,
Graphics2D g2,
RectangleConstraint constraint)
Arranges the blocks within the specified container, subject to the given
constraint.
container
- the container.g2
- the graphics device.constraint
- the constraint.
- The container size after the arrangement.
clear
public void clear()
Clears any cached layout information retained by the arrangement.