org.jfree.chart.title

Class CompositeTitle

public class CompositeTitle extends Title implements Cloneable, Serializable

A title that contains multiple titles within a BlockContainer.
Constructor Summary
CompositeTitle()
Creates a new composite title with a default border arrangement.
CompositeTitle(BlockContainer container)
Creates a new title using the specified container.
Method Summary
Size2Darrange(Graphics2D g2, RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and returns the block size.
voiddraw(Graphics2D g2, Rectangle2D area)
Draws the title on a Java 2D graphics device (such as the screen or a printer).
Objectdraw(Graphics2D g2, Rectangle2D area, Object params)
Draws the block within the specified area.
booleanequals(Object obj)
Tests this title for equality with an arbitrary object.
BlockContainergetContainer()
Returns the container holding the titles.
voidsetTitleContainer(BlockContainer container)
Sets the title container.

Constructor Detail

CompositeTitle

public CompositeTitle()
Creates a new composite title with a default border arrangement.

CompositeTitle

public CompositeTitle(BlockContainer container)
Creates a new title using the specified container.

Parameters: container the container (null not permitted).

Method Detail

arrange

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. constraint the constraint (null not permitted).

Returns: The block size (in Java2D units, never null).

draw

public void draw(Graphics2D g2, Rectangle2D area)
Draws the title on a Java 2D graphics device (such as the screen or a printer).

Parameters: g2 the graphics device. area the area allocated for the title.

draw

public Object draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the block within the specified area.

Parameters: g2 the graphics device. area the area. params ignored (null permitted).

Returns: Always null.

equals

public boolean equals(Object obj)
Tests this title for equality with an arbitrary object.

Parameters: obj the object (null permitted).

Returns: A boolean.

getContainer

public BlockContainer getContainer()
Returns the container holding the titles.

Returns: The title container (never null).

setTitleContainer

public void setTitleContainer(BlockContainer container)
Sets the title container.

Parameters: container the container (null not permitted).