Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.ChartDirector: Alignment Specification
Answer: ChartDirector: Alignment Specification
In many 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 defines several constants for the alignment options.
ConstantValueDescription
BottomLeft | 1 | The leftmost point on the bottom line. |
BottomCenter | 2 | The center point on the bottom line. |
BottomRight | 3 | The rightmost point on the bottom line. |
Left | 4 | The leftmost point on the middle horizontal line. |
Center | 5 | The center point on the middle horizontal line. |
Right | 6 | The rightmost point on the middle horizontal line. |
TopLeft | 7 | The leftmost point on the top line. |
TopCenter | 8 | The center point on the top line. |
TopRight | 9 | The rightmost point on the top line. |
Bottom | 2 | The center point on the bottom line. Same as BottomCenter. |
Top | 8 | The center point on the top line. Same as TopCenter. |
TopLeft2 | 10 | An alternative top-left position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, TopLeft2 refers to refers to the left of the top side, while TopLeft refers to the top of the left side. The reverse applies for a horizontal axis. |
TopRight2 | 11 | An alternative top-right position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, TopRight2 refers to refers to the right of the top side, while TopRight refers to the top of the right side. The reverse applies for a horizontal axis. |
BottomLeft2 | 12 | An alternative bottom-left position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, BottomLeft2 refers to refers to the left of the bottom side, while BottomLeft refers to the bottom of the left side. The reverse applies for a horizontal axis. |
BottomRight2 | 13 | An alternative bottom-right position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, BottomRight2 refers to refers to the right of the bottom side, while BottomRight refers to the bottom of the right side. The reverse applies for a horizontal axis. |