|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.chart.block.AbstractBlock org.jfree.chart.title.Title org.jfree.chart.title.CompositeTitle
public class 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, visible |
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 | |
---|---|
org.jfree.ui.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). |
java.lang.Object |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area,
java.lang.Object params)
Draws the block within the specified area. |
boolean |
equals(java.lang.Object obj)
Tests this title for equality with an arbitrary object. |
java.awt.Paint |
getBackgroundPaint()
Returns the background paint. |
BlockContainer |
getContainer()
Returns the container holding the titles. |
void |
setBackgroundPaint(java.awt.Paint paint)
Sets the background paint and sends a TitleChangeEvent to all
registered listeners. |
void |
setTitleContainer(BlockContainer container)
Sets the title container. |
Methods inherited from class org.jfree.chart.title.Title |
---|
addChangeListener, clone, getHorizontalAlignment, getNotify, getPosition, getVerticalAlignment, hashCode, isVisible, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setVerticalAlignment, setVisible |
Methods inherited from class org.jfree.chart.block.AbstractBlock |
---|
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, 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 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 java.awt.Paint getBackgroundPaint()
null
).public void setBackgroundPaint(java.awt.Paint paint)
TitleChangeEvent
to all
registered listeners. If you set this attribute to null
,
no background is painted (which makes the title background transparent).
paint
- the background paint (null
permitted).public BlockContainer getContainer()
null
).public void setTitleContainer(BlockContainer container)
container
- the container (null
not permitted).public org.jfree.ui.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 interface org.jfree.ui.Drawable
draw
in class Title
g2
- the graphics device.area
- the area allocated for the title.public java.lang.Object draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)
draw
in interface Block
g2
- the graphics device.area
- the area.params
- ignored (null
permitted).
null
.public boolean equals(java.lang.Object obj)
equals
in class Title
obj
- the object (null
permitted).
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |