Java org.jfree.chart.title TextTitle fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart.title TextTitle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart.title TextTitle.

The text is from its open source code.

Subclass

org.jfree.chart.title.TextTitle has subclasses.
Click this link to see all its subclasses.

Field

FontDEFAULT_FONT
The default font.
PaintDEFAULT_TEXT_PAINT
The default text color.

Constructor

TextTitle(String text, Font font)
Creates a new title, using default attributes where necessary.
TextTitle(String text)
Creates a new title, using default attributes where necessary.
TextTitle()
Creates a new title, using default attributes where necessary.
TextTitle(String text, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
Creates a new title.

Method

FontgetFont()
Returns the font used to display the title string.
RectangleInsetsgetPadding()
Returns the padding.
PaintgetPaint()
Returns the paint used to display the title string.
RectangleEdgegetPosition()
Returns the position of the title.
StringgetText()
Returns the title text.
voidsetBackgroundPaint(Paint paint)
Sets the background paint and sends a TitleChangeEvent to all registered listeners.
voidsetBorder(double top, double left, double bottom, double right)
Sets a black border with the specified line widths.
voidsetBorder(BlockBorder border)
Sets the border for the block (use BlockBorder#NONE for no border).
voidsetExpandToFitSpace(boolean expand)
Sets the flag that controls whether the title expands to fit the available space, and sends a TitleChangeEvent to all registered listeners.
voidsetFont(Font font)
Sets the font used to display the title string.
voidsetFrame(BlockFrame frame)
Sets the frame (or border).
voidsetHorizontalAlignment(HorizontalAlignment alignment)
Sets the horizontal alignment for the title and sends a TitleChangeEvent to all registered listeners.
voidsetMargin(double top, double left, double bottom, double right)
Sets the margin.
voidsetPadding(RectangleInsets padding)
Sets the padding (use RectangleInsets#ZERO_INSETS for no padding).
voidsetPadding(double top, double left, double bottom, double right)
Sets the padding.
voidsetPaint(Paint paint)
Sets the paint used to display the title string.
voidsetPosition(RectangleEdge position)
Sets the position for the title and sends a TitleChangeEvent to all registered listeners.
voidsetText(String text)
Sets the title to the specified text and sends a TitleChangeEvent to all registered listeners.
voidsetTextAlignment(HorizontalAlignment alignment)
Sets the text alignment and sends a TitleChangeEvent to all registered listeners.
voidsetToolTipText(String text)
Sets the tool tip text to the specified text and sends a TitleChangeEvent to all registered listeners.
voidsetURLText(String text)
Sets the URL text to the specified text and sends a TitleChangeEvent to all registered listeners.
voidsetVerticalAlignment(VerticalAlignment alignment)
Sets the vertical alignment for the title, and notifies any registered listeners of the change.
voidsetVisible(boolean visible)
Sets a flag that controls whether or not the title should be drawn, and sends a TitleChangeEvent to all registered listeners.