ChartDirector 7.0 (Perl Edition)

Axis.getThickness


Usage

getThickness()

Description

Gets the thickness of the axis.

The axis can be considered as a line, with one side facing the internal of the plot area, and the other side not facing the plot area. By default, the latter side includes the axis labels and axis title (although ChartDirector allows the axis to be configured so that the labels and titles are internal to the plot area).

The thickness of an axis only refers to the thickness of the side not facing the plot area. For a vertical axis, it is the width of the bounding box of that side, including the axis ticks, labels and title if they are on that side. For a horizontal axis, it is the height of the bounding box.

The intention of this method is to allow the chart to be adjusted to leave enough space for the axis labels and title.

This method should be called only after axis layout (after calling XYChart.layoutAxes, BaseChart.layout or XYChart.packPlotArea).

Arguments

None

Return Value

The thickness of the axis in pixels.