Range plotBandRange) throws PaintException {
target.startTag("rangeValue");
if (plotBandRange != null) {
if (plotBandRange instanceof NumberRange) {
target.addAttribute("valueType", "number");
NumberRange numberRange = (NumberRange) plotBandRange;
if (numberRange.getFrom() != null) {
target.addAttribute("from", numberRange.getFrom());
}
if (numberRange.getTo() != null) {
target.addAttribute("to", numberRange.getTo());
}
} else if (plotBandRange instanceof DateTimeRange) {
target.addAttribute("valueType", "date");
DateTimeRange dateRange = (DateTimeRange) plotBandRange;
target.startTag("from");