public class CompositeTitle extends Title implements java.lang.Cloneable, java.io.Serializable
BlockContainer.DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_PADDING, DEFAULT_POSITION, DEFAULT_VERTICAL_ALIGNMENT| Constructor and Description |
|---|
CompositeTitle()
Creates a new composite title with a default border arrangement.
|
CompositeTitle(BlockContainer container)
Creates a new title using the specified container.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
BlockContainer |
getContainer()
Returns the container holding the titles.
|
void |
setTitleContainer(BlockContainer container)
Sets the title container.
|
addChangeListener, clone, getHorizontalAlignment, getNotify, getPosition, getVerticalAlignment, hashCode, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setVerticalAlignmentarrange, 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, trimToContentWidthpublic CompositeTitle()
public CompositeTitle(BlockContainer container)
container - the container (null not 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 Blockarrange in class AbstractBlockg2 - the graphics device.constraint - the constraint (null not permitted).null).public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)
public java.lang.Object draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)