if (labels != null) { for (int i = 0; i < labels.length; i++) paintLabel(g, graph.convertValueToString(labels[i]), getExtraLabelPosition(view, i), false || !simpleExtraLabels); Object label = graph.convertValueToString(view); if (label != null) { paintLabel(g, label.toString(), getLabelPosition(view), true);