if (format.getClass().equals(DateNumberFormat.class)) {
GregorianCalendar gc = new GregorianCalendar();
gc.setTimeInMillis((long) value);
label.setToolTipText(format.format(value) +" " + gc.get(Calendar.YEAR) );
}
Rotation labelRotation = getLabelRotation();
if(labelRotation != null) {
label.putClientProperty(Rotation.class.getName(), labelRotation);
}
label.setUI(MultiLineLabelUI.labelUI);
label.setForeground(getForeground());