wxChartLabel

Description

This class is used to display text on a chart.

<p>In addition to the text this class stores the width and height of the label. However this class itself is unable to compute them as that requires a graphics context. The code that uses this class needs to set and update the width and height.</p>

Methods

Public

wxChartLabel

Constructs a element. The width and height are set to 0.

wxChartLabel

Constructs a element.

void Draw

Draws the element.

bool HitTest

Elements can be activated with the mouse. This function checks whether the mouse is in the activation zone for this element.

wxPoint2DDouble GetTooltipPosition

Gets the position of the tooltip.

[object Object] GetOptions

const wxString & GetText

Gets the text of the label.

const wxPoint2DDouble & GetPosition

Gets the position of the label. The position must have been set by the function.

void SetPosition

void SetPosition

Sets the position of the label.

const wxSize & GetSize

Gets the size of the label. The size must have been set at construction or by one of the functions that set the size.

void SetSize

Sets the size of the label.

void SetSize

Sets the size of the label.

void UpdateSize

[object Object] GetPadding

void SetPadding