Package com.quantcomponents.chart.series

Examples of com.quantcomponents.chart.series.TimeMark


    cal.set(Calendar.MILLISECOND, 0);
    cal.set(Calendar.SECOND, 0);
    if (cal.get(Calendar.MINUTE) % 2 > 0) {
      cal.add(Calendar.MINUTE, -1);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here


    cal.set(Calendar.HOUR_OF_DAY, 0);
    int rem = (cal.get(Calendar.DAY_OF_WEEK) - Calendar.MONDAY + 7) % 7;
    if (rem > 0) {
      cal.add(Calendar.DATE, -rem);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.MILLISECOND, 0);
    cal.set(Calendar.SECOND, 0);
    cal.set(Calendar.MINUTE, 0);
    cal.set(Calendar.HOUR_OF_DAY, 0);
    cal.set(Calendar.DAY_OF_MONTH, 1);
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.setTime(date);
    cal.set(Calendar.MILLISECOND, 0);
    cal.set(Calendar.SECOND, 0);
    cal.set(Calendar.MINUTE, 0);
    cal.set(Calendar.HOUR_OF_DAY, 0);
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

  @Override
  public IMark<Date> previousMark(Date date) {
    cal.setTime(date);
    cal.set(Calendar.MILLISECOND, 0);
    cal.set(Calendar.SECOND, 0);
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.DAY_OF_MONTH, 1);
    int rem = cal.get(Calendar.MONTH) % 3;
    if (rem > 0) {
      cal.add(Calendar.MONTH, -rem);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.SECOND, 0);
    cal.set(Calendar.MINUTE, 0);
    if (cal.get(Calendar.HOUR_OF_DAY) % 2 > 0) {
      cal.add(Calendar.HOUR_OF_DAY, -1);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.SECOND, 0);
    int rem = cal.get(Calendar.MINUTE) % 30;
    if (rem > 0) {
      cal.add(Calendar.MINUTE, -rem);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.SECOND, 0);
    int rem = cal.get(Calendar.MINUTE) % 10;
    if (rem > 0) {
      cal.add(Calendar.MINUTE, -rem);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

    cal.set(Calendar.MINUTE, 0);
    int rem = cal.get(Calendar.HOUR_OF_DAY) % 4;
    if (rem > 0) {
      cal.add(Calendar.HOUR_OF_DAY, -rem);
    }
    return new TimeMark(this, cal.getTime());
  }
View Full Code Here

TOP

Related Classes of com.quantcomponents.chart.series.TimeMark

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.