org.jfree.chart.title
public class CompositeTitle extends Title implements Cloneable, Serializable
| 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 | |
|---|---|
| Size2D | arrange(Graphics2D g2, RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and
returns the block size.
|
| void | draw(Graphics2D g2, Rectangle2D area)
Draws the title on a Java 2D graphics device (such as the screen or a
printer).
|
| Object | draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the block within the specified area.
|
| boolean | equals(Object obj)
Tests this title for equality with an arbitrary object.
|
| Paint | getBackgroundPaint()
Returns the background paint.
|
| BlockContainer | getContainer()
Returns the container holding the titles.
|
| void | setBackgroundPaint(Paint paint)
Sets the background paint and sends a TitleChangeEvent to all
registered listeners. |
| void | setTitleContainer(BlockContainer container)
Sets the title container.
|
Parameters: container the container (null not permitted).
Parameters: g2 the graphics device. constraint the constraint (null not permitted).
Returns: The block size (in Java2D units, never null).
Parameters: g2 the graphics device. area the area allocated for the title.
Parameters: g2 the graphics device. area the area. params ignored (null permitted).
Returns: Always null.
Parameters: obj the object (null permitted).
Returns: A boolean.
Returns: The paint (possibly null).
Since: 1.0.11
Returns: The title container (never null).
null,
no background is painted (which makes the title background transparent).
Parameters: paint the background paint (null permitted).
Since: 1.0.11
Parameters: container the container (null not permitted).