List of usage examples for org.jfree.data.time Quarter FIRST_MONTH_IN_QUARTER
null FIRST_MONTH_IN_QUARTER
To view the source code for org.jfree.data.time Quarter FIRST_MONTH_IN_QUARTER.
Click Source Link
From source file:org.jfree.data.time.Quarter.java
/** * Returns the first millisecond in the Quarter, evaluated using the * supplied calendar (which determines the time zone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The first millisecond in the Quarter. * * @throws NullPointerException if {@code calendar} is {@code null}. *//*from ww w . j a v a 2 s . c o m*/ @Override public long getFirstMillisecond(Calendar calendar) { int month = Quarter.FIRST_MONTH_IN_QUARTER[this.quarter]; calendar.set(this.year, month - 1, 1, 0, 0, 0); calendar.set(Calendar.MILLISECOND, 0); return calendar.getTimeInMillis(); }