Example usage for Java org.jfree.chart.title TextTitle fields, constructors, methods, implement or subclass
The text is from its open source code.
Font | DEFAULT_FONT The default font. |
Paint | DEFAULT_TEXT_PAINT The default text color. |
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. |
Font | getFont() Returns the font used to display the title string. |
RectangleInsets | getPadding() Returns the padding. |
Paint | getPaint() Returns the paint used to display the title string. |
RectangleEdge | getPosition() Returns the position of the title. |
String | getText() Returns the title text. |
void | setBackgroundPaint(Paint paint) Sets the background paint and sends a TitleChangeEvent to all registered listeners. |
void | setBorder(double top, double left, double bottom, double right) Sets a black border with the specified line widths. |
void | setBorder(BlockBorder border) Sets the border for the block (use BlockBorder#NONE for no border). |
void | setExpandToFitSpace(boolean expand) Sets the flag that controls whether the title expands to fit the available space, and sends a TitleChangeEvent to all registered listeners. |
void | setFont(Font font) Sets the font used to display the title string. |
void | setFrame(BlockFrame frame) Sets the frame (or border). |
void | setHorizontalAlignment(HorizontalAlignment alignment) Sets the horizontal alignment for the title and sends a TitleChangeEvent to all registered listeners. |
void | setMargin(double top, double left, double bottom, double right) Sets the margin. |
void | setPadding(RectangleInsets padding) Sets the padding (use RectangleInsets#ZERO_INSETS for no padding). |
void | setPadding(double top, double left, double bottom, double right) Sets the padding. |
void | setPaint(Paint paint) Sets the paint used to display the title string. |
void | setPosition(RectangleEdge position) Sets the position for the title and sends a TitleChangeEvent to all registered listeners. |
void | setText(String text) Sets the title to the specified text and sends a TitleChangeEvent to all registered listeners. |
void | setTextAlignment(HorizontalAlignment alignment) Sets the text alignment and sends a TitleChangeEvent to all registered listeners. |
void | setToolTipText(String text) Sets the tool tip text to the specified text and sends a TitleChangeEvent to all registered listeners. |
void | setURLText(String text) Sets the URL text to the specified text and sends a TitleChangeEvent to all registered listeners. |
void | setVerticalAlignment(VerticalAlignment alignment) Sets the vertical alignment for the title, and notifies any registered listeners of the change. |
void | setVisible(boolean visible) Sets a flag that controls whether or not the title should be drawn, and sends a TitleChangeEvent to all registered listeners. |