| java.lang.Object org.jfree.chart.block.AbstractBlock org.jfree.chart.block.BlockContainer
All known Subclasses: org.jfree.chart.title.LegendItemBlockContainer,
Method Summary | |
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.
Parameters: g2 - the graphics device. Parameters: constraint - the constraint (null not permitted). | public void | clear() Clears all the blocks from the container. | public Object | clone() 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.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - passed on to blocks within the container (null permitted). | public boolean | equals(Object obj) Tests this container for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | 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. |
BlockContainer | public BlockContainer()(Code) | | Creates a new instance with default settings.
|
BlockContainer | public BlockContainer(Arrangement arrangement)(Code) | | Creates a new instance with the specified arrangement.
Parameters: arrangement - the arrangement manager (null not permitted). |
add | public void add(Block block)(Code) | | Adds a block to the container.
Parameters: block - the block (null permitted). |
add | public void add(Block block, Object key)(Code) | | Adds a block to the container.
Parameters: block - the block (null permitted). Parameters: key - the key (null permitted). |
arrange | public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code) | | Arranges the contents of the block, within the given constraints, and
returns the block size.
Parameters: g2 - the graphics device. Parameters: constraint - the constraint (null not permitted). The block size (in Java2D units, never null ). |
clear | public void clear()(Code) | | Clears all the blocks from the container.
|
draw | public void draw(Graphics2D g2, Rectangle2D area)(Code) | | Draws the container and all the blocks within it.
Parameters: g2 - the graphics device. Parameters: area - the area. |
draw | public Object draw(Graphics2D g2, Rectangle2D area, Object params)(Code) | | Draws the block within the specified area.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - passed on to blocks within the container (null permitted). An instance of EntityBlockResult, or null . |
equals | public boolean equals(Object obj)(Code) | | Tests this container for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getArrangement | public Arrangement getArrangement()(Code) | | Returns the arrangement (layout) manager for the container.
The arrangement manager (never null ). |
getBlocks | public List getBlocks()(Code) | | Returns an unmodifiable list of the
Block objects managed by
this arrangement.
A list of blocks. |
isEmpty | public boolean isEmpty()(Code) | | Returns true if there are no blocks in the container, and
false otherwise.
A boolean. |
setArrangement | public void setArrangement(Arrangement arrangement)(Code) | | Sets the arrangement (layout) manager.
Parameters: arrangement - the arrangement (null not permitted). |
Methods inherited from org.jfree.chart.block.AbstractBlock | public Size2D arrange(Graphics2D g2)(Code)(Java Doc) public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code)(Java Doc) protected double calculateTotalHeight(double contentHeight)(Code)(Java Doc) protected double calculateTotalWidth(double contentWidth)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected void drawBorder(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public BlockBorder getBorder()(Code)(Java Doc) public Rectangle2D getBounds()(Code)(Java Doc) public double getContentXOffset()(Code)(Java Doc) public double getContentYOffset()(Code)(Java Doc) public BlockFrame getFrame()(Code)(Java Doc) public double getHeight()(Code)(Java Doc) public String getID()(Code)(Java Doc) public RectangleInsets getMargin()(Code)(Java Doc) public RectangleInsets getPadding()(Code)(Java Doc) public double getWidth()(Code)(Java Doc) public void setBorder(BlockBorder border)(Code)(Java Doc) public void setBorder(double top, double left, double bottom, double right)(Code)(Java Doc) public void setBounds(Rectangle2D bounds)(Code)(Java Doc) public void setFrame(BlockFrame frame)(Code)(Java Doc) public void setHeight(double height)(Code)(Java Doc) public void setID(String id)(Code)(Java Doc) public void setMargin(RectangleInsets margin)(Code)(Java Doc) public void setMargin(double top, double left, double bottom, double right)(Code)(Java Doc) public void setPadding(RectangleInsets padding)(Code)(Java Doc) public void setPadding(double top, double left, double bottom, double right)(Code)(Java Doc) public void setWidth(double width)(Code)(Java Doc) protected RectangleConstraint toContentConstraint(RectangleConstraint c)(Code)(Java Doc) protected Rectangle2D trimBorder(Rectangle2D area)(Code)(Java Doc) protected Rectangle2D trimMargin(Rectangle2D area)(Code)(Java Doc) protected Rectangle2D trimPadding(Rectangle2D area)(Code)(Java Doc) protected double trimToContentHeight(double fixedHeight)(Code)(Java Doc) protected double trimToContentWidth(double fixedWidth)(Code)(Java Doc)
|
|
|