org.jfree.chart.title
public class ShortTextTitle extends TextTitle
Since: 1.0.10
See Also: TextTitle
Constructor Summary | |
---|---|
ShortTextTitle(String text)
Creates a new title.
|
Method Summary | |
---|---|
Size2D | arrange(Graphics2D g2, RectangleConstraint constraint)
Performs a layout for this title, subject to the supplied constraint,
and returns the dimensions required for the title (if the title
cannot be displayed in the available space, this method will return
zero width and height for the dimensions).
|
protected Size2D | arrangeFN(Graphics2D g2, double w)
Arranges the content for this title assuming a fixed width and no bounds
on the height, and returns the required size. |
protected Size2D | arrangeNN(Graphics2D g2)
Arranges the content for this title assuming no bounds on the width
or the height, and returns the required size.
|
protected Size2D | arrangeRN(Graphics2D g2, Range widthRange)
Arranges the content for this title assuming a range constraint for the
width and no bounds on the height, and returns the required size.
|
protected Size2D | arrangeRR(Graphics2D g2, Range widthRange, Range heightRange)
Returns the content size for the title.
|
Object | draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the title using the current font and paint.
|
Parameters: text the text (null
not permitted).
Parameters: g2 the graphics target. constraint the layout constraints.
Returns: The dimensions for the title.
Parameters: g2 the graphics target. w the width.
Returns: The content size.
Parameters: g2 the graphics target.
Returns: The content size.
Parameters: g2 the graphics target. widthRange the range for the width.
Returns: The content size.
Parameters: g2 the graphics device. widthRange the width range. heightRange the height range.
Returns: The content size.
Parameters: g2 the graphics target. area the title area. params optional parameters (ignored here).