Package com.quantcomponents.chart.series

Examples of com.quantcomponents.chart.series.TimeMark


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


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

    cal.set(Calendar.SECOND, 0);
    int rem = cal.get(Calendar.MINUTE) % 5;
    if (rem > 0) {
      cal.add(Calendar.MINUTE, -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.