getLongestLabel method

String getLongestLabel()

Returns the longest formatted label (in terms of characters), this axis contains.

@return

Implementation

String getLongestLabel() {
  String longest = "";

  for (int i = 0; i < _entries.length; i++) {
    String text = getFormattedLabel(i);

    if (text != null && longest.length < text.length) longest = text;
  }

  return longest;
}