org.jfree.chart.title
Class CompositeTitle
- Cloneable, Drawable, Serializable, Block
implements Cloneable, Serializable
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.
|
BlockContainer | getContainer()- Returns the container holding the titles.
|
void | setTitleContainer(BlockContainer container)- Sets the title container.
|
addChangeListener, clone, draw, equals, getHorizontalAlignment, getNotify, getPosition, getVerticalAlignment, hashCode, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setVerticalAlignment |
arrange, arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, equals, getBorder, getBounds, getContentXOffset, getContentYOffset, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBorder, setBounds, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth |
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.
container - the container (null not permitted).
arrange
public Size2D arrange(Graphics2D g2,
RectangleConstraint constraint) Arranges the contents of the block, within the given constraints, and
returns the block size.
- arrange in interface Block
- arrange in interface AbstractBlock
g2 - the graphics device.constraint - the constraint (null not permitted).
- 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).
- draw in interface Title
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.
- draw in interface Block
g2 - the graphics device.area - the area.params - ignored (null permitted).
equals
public boolean equals(Object obj)
Tests this title for equality with an arbitrary object.
- equals in interface Title
obj - the object (null permitted).