ChartDirector 7.0 (Java Edition)

DrawArea.text2


Usage

public void text2(String str, String font, int fontIndex, double fontHeight, double fontWidth, double angle, boolean vertical, int x, int y, int color [, int alignment ])

Description

Draws text.

Arguments

ArgumentDefaultDescription
str(Mandatory)A string representing the text to be drawn. CDML
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. The angle is measured in degrees in clockwise direction.
vertical(Mandatory)This argument is for compatibility with older versions of ChartDirector. Always set it to false.
x(Mandatory)The x coordinate of a reference point to align the text.
y(Mandatory)The y coordinate of a reference point to align the text.
color(Mandatory)The color of the text.
alignmentTopLeftThe position of the text relative to the reference point. See Alignment Specification for supported alignment types.

Return Value

None