public class TitleUtils extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Font |
DEFAULT_SUBTITLE_FONT
The default sub-title font.
|
static java.awt.Color |
DEFAULT_TITLE_COLOR
The default foreground color for titles.
|
static java.awt.Font |
DEFAULT_TITLE_FONT
The default title font.
|
| Modifier and Type | Method and Description |
|---|---|
static TableElement |
createTitle(java.lang.String title)
Creates a chart title using the default font and alignment.
|
static TableElement |
createTitle(java.lang.String title,
java.awt.Font titleFont,
java.lang.String subtitle,
java.awt.Font subtitleFont,
HAlign alignment)
Creates a chart title and subtitle using the specified fonts and
alignment.
|
static TableElement |
createTitle(java.lang.String title,
java.lang.String subtitle)
Creates a chart title and subtitle using default fonts and left
alignment.
|
static TableElement |
createTitle(java.lang.String title,
java.lang.String subtitle,
Anchor2D anchor)
Creates a chart title and subtitle (optional) using default fonts and
alignment that is standard for the specified anchor point (that is, left
alignment when the title is anchored left, center alignment when the
title is anchored centrally, and right alignment when the title is
anchored to the right).
|
public static final java.awt.Font DEFAULT_TITLE_FONT
public static final java.awt.Color DEFAULT_TITLE_COLOR
public static final java.awt.Font DEFAULT_SUBTITLE_FONT
public static TableElement createTitle(java.lang.String title)
title - the chart title (null not permitted).public static TableElement createTitle(java.lang.String title, java.lang.String subtitle)
subtitle is optional.title - the title text (null not permitted).subtitle - the subtitle text (null permitted).public static TableElement createTitle(java.lang.String title, java.lang.String subtitle, Anchor2D anchor)
title - the title text (null not permitted).subtitle - the subtitle text (null permitted).anchor - the anchor point (null not permitted).public static TableElement createTitle(java.lang.String title, java.awt.Font titleFont, java.lang.String subtitle, java.awt.Font subtitleFont, HAlign alignment)
title - the title text (null not permitted).titleFont - the title font (null not permitted).subtitle - the subtitle text (null permitted).subtitleFont - the subtitle font (null permitted).alignment - the horizontal alignment (null not
permitted).null).