java.lang.Object | ||||
↳ | org.jfree.chart.block.AbstractBlock | |||
↳ | org.jfree.chart.title.Title | |||
↳ | org.jfree.chart.title.TextTitle | |||
↳ | org.jfree.chart.title.ShortTextTitle |
A text title that is only displayed if the entire text will be visible
without line wrapping. It is only intended for use with short titles - for
general purpose titles, you should use the TextTitle
class.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new title.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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).
| |||||||||||
Draws the title using the current font and paint.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Arranges the content for this title assuming a fixed width and no bounds
on the height, and returns the required size.
| |||||||||||
Arranges the content for this title assuming no bounds on the width
or the height, and returns the required size.
| |||||||||||
Arranges the content for this title assuming a range constraint for the
width and no bounds on the height, and returns the required size.
| |||||||||||
Returns the content size for the title.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new title.
text | the text (null not permitted).
|
---|
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).
g2 | the graphics target. |
---|---|
constraint | the layout constraints. |
Draws the title using the current font and paint.
g2 | the graphics target. |
---|---|
area | the title area. |
params | optional parameters (ignored here). |
null
.
Arranges the content for this title assuming a fixed width and no bounds on the height, and returns the required size. This will reflect the fact that a text title positioned on the left or right of a chart will be rotated by 90 degrees.
g2 | the graphics target. |
---|---|
w | the width. |
Arranges the content for this title assuming no bounds on the width or the height, and returns the required size.
g2 | the graphics target. |
---|
Arranges the content for this title assuming a range constraint for the width and no bounds on the height, and returns the required size.
g2 | the graphics target. |
---|---|
widthRange | the range for the width. |
Returns the content size for the title.
g2 | the graphics device. |
---|---|
widthRange | the width range. |
heightRange | the height range. |