ChartDirector 5.1 (Java Edition)

DrawArea.text4


Usage

public TTFText text4(String text, String font, int fontIndex, double fontHeight, double fontWidth, double angle, boolean vertical)

Description

Creates a TTFText object representing a text block.

The TTFText object contains methods to measure and draw the text. This method is useful if the size of the text is needed before deciding where the draw it.

Arguments

ArgumentDefaultDescription
text(Mandatory)A string representing the text to be drawn. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontIndex(Mandatory)The font index is ignored in the Java edition of ChartDirector and should be set to 0. It is solely for consistency and compatibility with other editions of ChartDirector.
fontHeight(Mandatory)The font height in points.
fontWidth(Mandatory)The font width in points.
angle(Mandatory)The rotation angle of the text.
vertical(Mandatory)A true value means the text is layout vertically (from top to bottom). A false value means the is layout horizontally (from left to right).

Return Value

The TTFText object created.