numberAxis.setNumberFormatOverride(getDomainTickFormat());
}
else if (getDomainTickFormatString() != null)
{
final DecimalFormat formatter = new DecimalFormat
(getDomainTickFormatString(), new DecimalFormatSymbols(getResourceBundleFactory().getLocale()));
numberAxis.setNumberFormatOverride(formatter);
}
}
}
else if (domainAxis instanceof DateAxis)
{
final DateAxis numberAxis = (DateAxis) domainAxis;
if (getDomainPeriodCount() > 0 && getDomainTimePeriod() != null)
{
if (getDomainTickFormatString() != null)
{
final SimpleDateFormat formatter = new SimpleDateFormat
(getDomainTickFormatString(), new DateFormatSymbols(getResourceBundleFactory().getLocale()));
numberAxis.setTickUnit
(new DateTickUnit(getDateUnitAsInt(getDomainTimePeriod()), (int) getDomainPeriodCount(), formatter));
}
else
{
numberAxis.setTickUnit
(new DateTickUnit(getDateUnitAsInt(getDomainTimePeriod()), (int) getDomainPeriodCount()));
}
}
}
if (domainAxis != null)
{
domainAxis.setLabel(getDomainTitle());
if (getDomainTitleFont() != null)
{
domainAxis.setLabelFont(getDomainTitleFont());
}
domainAxis.setVerticalTickLabels(isDomainVerticalTickLabels());
if (getDomainTickFont() != null)
{
domainAxis.setTickLabelFont(getDomainTickFont());
}
if (getDomainMinimum() != ValueAxis.DEFAULT_LOWER_BOUND)
{
domainAxis.setLowerBound(getDomainMinimum());
}
if (getDomainMaximum() != ValueAxis.DEFAULT_UPPER_BOUND)
{
domainAxis.setUpperBound(getDomainMaximum());
}
}
final ValueAxis rangeAxis = plot.getRangeAxis();
if (rangeAxis instanceof NumberAxis)
{
final NumberAxis numberAxis = (NumberAxis) rangeAxis;
if (getRangePeriodCount() > 0)
{
if (getRangeTickFormat() != null)
{
numberAxis.setTickUnit(new NumberTickUnit(getRangePeriodCount(), getRangeTickFormat()));
}
else if (getRangeTickFormatString() != null)
{
final FastDecimalFormat formatter = new FastDecimalFormat
(getRangeTickFormatString(), getResourceBundleFactory().getLocale());
numberAxis.setTickUnit(new FastNumberTickUnit(getRangePeriodCount(), formatter));
}
else
{
numberAxis.setTickUnit(new FastNumberTickUnit(getRangePeriodCount()));
}
}
else
{
if (getRangeTickFormat() != null)
{
numberAxis.setNumberFormatOverride(getRangeTickFormat());
}
else if (getRangeTickFormatString() != null)
{
final DecimalFormat formatter = new DecimalFormat
(getRangeTickFormatString(), new DecimalFormatSymbols(getResourceBundleFactory().getLocale()));
numberAxis.setNumberFormatOverride(formatter);
}
}
}
else if (rangeAxis instanceof DateAxis)