/** * Calculates a new date by adding this unit to the base date, with * calculations performed in the default timezone and locale. * * @param base the base date. * * @return A new date one unit after the base date. * * @see #addToDate(Date, TimeZone) * * @deprecated As of JFreeChart 1.0.10, this method is deprecated - you * should use {@link #addToDate(Date, TimeZone)} instead. */ public Date addToDate(Date base) { return addToDate(base, TimeZone.getDefault()); }
long distance = unit.addToDate(tickDate, this.timeZone).getTime() - lowestTickTime; int minorTickSpaces = getMinorTickCount(); result.add(tick); long currentTickTime = tickDate.getTime(); tickDate = unit.addToDate(tickDate, this.timeZone); long nextTickTime = tickDate.getTime(); for (int minorTick = 1; minorTick < minorTickSpaces;