| org.jfree.chart.block.Arrangement
All known Subclasses: org.jfree.chart.block.CenterArrangement, org.jfree.chart.block.GridArrangement, org.jfree.chart.block.ColumnArrangement, org.jfree.chart.block.FlowArrangement, org.jfree.chart.block.BorderArrangement,
Arrangement | public interface Arrangement (Code) | | An object that is responsible for arranging a collection of
Block s
within a
BlockContainer .
|
Method Summary | |
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. | public Size2D | arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) Arranges the blocks within the specified container, subject to the given
constraint.
Parameters: container - the container. Parameters: g2 - the graphics device. Parameters: constraint - the constraint. | public void | clear() Clears any cached layout information retained by the arrangement. |
add | public void add(Block block, Object key)(Code) | | 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.
Parameters: block - the block. Parameters: key - the key (null permitted). |
arrange | public Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint)(Code) | | Arranges the blocks within the specified container, subject to the given
constraint.
Parameters: container - the container. Parameters: g2 - the graphics device. Parameters: constraint - the constraint. The container size after the arrangement. |
clear | public void clear()(Code) | | Clears any cached layout information retained by the arrangement.
|
|
|