org.jfree.chart.block
public class BlockContainer extends AbstractBlock implements Block, Cloneable, PublicCloneable, Serializable
| Constructor Summary | |
|---|---|
| BlockContainer()
Creates a new instance with default settings. | |
| BlockContainer(Arrangement arrangement)
Creates a new instance with the specified arrangement.
| |
| Method Summary | |
|---|---|
| void | add(Block block)
Adds a block to the container.
|
| void | add(Block block, Object key)
Adds a block to the container.
|
| Size2D | arrange(Graphics2D g2, RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and
returns the block size.
|
| void | clear()
Clears all the blocks from the container. |
| Object | clone()
Returns a clone of the container.
|
| void | draw(Graphics2D g2, Rectangle2D area)
Draws the container and all the blocks within it.
|
| Object | draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the block within the specified area.
|
| boolean | equals(Object obj)
Tests this container for equality with an arbitrary object.
|
| Arrangement | getArrangement()
Returns the arrangement (layout) manager for the container.
|
| List | getBlocks()
Returns an unmodifiable list of the Block objects managed by
this arrangement.
|
| boolean | isEmpty()
Returns true if there are no blocks in the container, and
false otherwise.
|
| void | setArrangement(Arrangement arrangement)
Sets the arrangement (layout) manager.
|
Parameters: arrangement the arrangement manager (null not
permitted).
Parameters: block the block (null permitted).
Parameters: block the block (null permitted). key the key (null permitted).
Parameters: g2 the graphics device. constraint the constraint (null not permitted).
Returns: The block size (in Java2D units, never null).
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem cloning.
Parameters: g2 the graphics device. area the area.
Parameters: g2 the graphics device. area the area. params passed on to blocks within the container
(null permitted).
Returns: An instance of EntityBlockResult, or null.
Parameters: obj the object (null permitted).
Returns: A boolean.
Returns: The arrangement manager (never null).
Returns: A list of blocks.
true if there are no blocks in the container, and
false otherwise.
Returns: A boolean.
Parameters: arrangement the arrangement (null not permitted).