} else if (newSize < HOUR) { setTicInterval (MINUTE);
} else if (newSize > HOUR) { setTicInterval (15*MINUTE); } else if (newSize > 15*MINUTE) { setTicInterval (5*MINUTE); } else if (newSize > 5*MINUTE) { setTicInterval (2*MINUTE); } else if (newSize > 2*MINUTE) { setTicInterval (30*SECOND); } else if (newSize > 30*SECOND) { setTicInterval (15*SECOND); } else if (newSize > 15*SECOND) { setTicInterval (5*SECOND); } else if (newSize > 5*SECOND) { setTicInterval (2*SECOND); } else { setTicInterval (SECOND);
  public void setVirtualXSize(long newSize) {    myVirtualXSync.setVirtualXSize(newSize);    if (newSize > 48*MONTH) {      setTicInterval (YEAR);    } else if (newSize > 12*MONTH) {      setTicInterval (MONTH);    } else if (newSize > 12*WEEK) {      setTicInterval (WEEK);    } else if (newSize > DAY) {      setTicInterval (DAY);    } else if (newSize < DAY) {      setTicInterval (HOUR);    } else if (newSize < HOUR) {      setTicInterval (MINUTE);    }  }