|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.block.AbstractBlock
org.jfree.chart.title.Title
org.jfree.chart.title.CompositeTitle
A title that contains multiple titles within a BlockContainer
.
Field Summary |
Fields inherited from class org.jfree.chart.title.Title |
DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_PADDING, DEFAULT_POSITION, DEFAULT_VERTICAL_ALIGNMENT |
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(java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and returns the block size. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the title on a Java 2D graphics device (such as the screen or a printer). |
BlockContainer |
getContainer()
Returns the container holding the titles. |
void |
setTitleContainer(BlockContainer container)
Sets the title container. |
Methods inherited from class org.jfree.chart.title.Title |
addChangeListener, clone, equals, getHorizontalAlignment, getNotify, getPosition, getVerticalAlignment, hashCode, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setVerticalAlignment |
Methods inherited from class org.jfree.chart.block.AbstractBlock |
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, getBorder, getBounds, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBounds, setHeight, setID, setMargin, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.chart.block.Block |
arrange, getBounds, getID, setBounds, setID |
Constructor Detail |
public CompositeTitle()
public CompositeTitle(BlockContainer container)
container
- the container (null
not permitted).Method Detail |
public BlockContainer getContainer()
null
).public void setTitleContainer(BlockContainer container)
container
- the container (null
not permitted).public Size2D arrange(java.awt.Graphics2D g2, RectangleConstraint constraint)
arrange
in interface Block
arrange
in class AbstractBlock
g2
- the graphics device.constraint
- the constraint (null
not permitted).
null
).public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)
draw
in class Title
g2
- the graphics device.area
- the area allocated for the title.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |