Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » block » [javadoc | source]
org.jfree.chart.block
public class: BlockContainer [javadoc | source]
java.lang.Object
   org.jfree.chart.block.AbstractBlock
      org.jfree.chart.block.BlockContainer

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, Block

Direct Known Subclasses:
    LegendItemBlockContainer

A container for a collection of Block objects. The container uses an Arrangement object to handle the position of each block.
Constructor:
 public BlockContainer() 
 public BlockContainer(Arrangement arrangement) 
    Creates a new instance with the specified arrangement.
    Parameters:
    arrangement - the arrangement manager (null not permitted).
Method from org.jfree.chart.block.BlockContainer Summary:
add,   add,   arrange,   clear,   clone,   draw,   draw,   equals,   getArrangement,   getBlocks,   isEmpty,   setArrangement
Methods from org.jfree.chart.block.AbstractBlock:
arrange,   arrange,   calculateTotalHeight,   calculateTotalWidth,   clone,   drawBorder,   equals,   getBorder,   getBounds,   getContentXOffset,   getContentYOffset,   getFrame,   getHeight,   getID,   getMargin,   getPadding,   getWidth,   setBorder,   setBorder,   setBounds,   setFrame,   setHeight,   setID,   setMargin,   setMargin,   setPadding,   setPadding,   setWidth,   toContentConstraint,   trimBorder,   trimMargin,   trimPadding,   trimToContentHeight,   trimToContentWidth
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.block.BlockContainer Detail:
 public  void add(Block block) 
    Adds a block to the container.
 public  void add(Block block,
    Object key) 
    Adds a block to the container.
 public Size2D arrange(Graphics2D g2,
    RectangleConstraint constraint) 
    Arranges the contents of the block, within the given constraints, and returns the block size.
 public  void clear() 
    Clears all the blocks from the container.
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the container.
 public  void draw(Graphics2D g2,
    Rectangle2D area) 
    Draws the container and all the blocks within it.
 public Object draw(Graphics2D g2,
    Rectangle2D area,
    Object params) 
    Draws the block within the specified area.
 public boolean equals(Object obj) 
    Tests this container for equality with an arbitrary object.
 public Arrangement getArrangement() 
    Returns the arrangement (layout) manager for the container.
 public List getBlocks() 
    Returns an unmodifiable list of the Block objects managed by this arrangement.
 public boolean isEmpty() 
    Returns true if there are no blocks in the container, and false otherwise.
 public  void setArrangement(Arrangement arrangement) 
    Sets the arrangement (layout) manager.