SRGDecimalScale::CreateLabels

void SRGDecimalScale::CreateLabels(void)

Creates the list of numbers to appear along a decimal axis

Defined in: DScale.cpp

Remarks

This routine dynamically re-evaluates the number of labels displayed by factoring the available line length and the size of the font used to display the labels.

Developer Notes

Labels are always created perpendicular to the line vector. If this does not suit your needs, you may use the standard SRGraphLabel or SRGraphLabelBlock commands to reposition or reorient the labels.
Overlap calculations are first performed on straight (0 degree) text and then the whole string of labels is rotated to the correct orientation just before drawing.
Labels can be placed to the left or to the right of the line.