ChartDirector Ver 3.1 (PHP Edition Edition)

Alignment Specification


In a number of ChartDirector objects, you may specify the alignment of the object's content relative to its boundary. For example, for a TextBox object, you may specify the text's alignment relative to the box boundary by using TextBox.setAlignment.

The ChartDirector API pre-defines several constants for the alignment options.

ConstantValueDescription
BottomLeft1The leftmost point on the bottom line.
BottomCenter2The center point on the bottom line.
BottomRight3The rightmost point on the bottom line.
Left4The leftmost point on the middle horizontal line.
Center5The center point on the middle horizontal line.
Right6The rightmost point on the middle horizontal line.
TopLeft7The leftmost point on the top line.
TopCenter8The center point on the top line.
TopRight9The rightmost point on the top line.
Bottom2The center point on the bottom line. Same as BottomCenter.
Top8The center point on the top line. Same as TopCenter.