本文整理了Java中org.jfree.data.time.Week.peg()
方法的一些代码示例,展示了Week.peg()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Week.peg()
方法的具体详情如下:
包路径:org.jfree.data.time.Week
类名称:Week
方法名:peg
[英]Recalculates the start date/time and end date/time for this time period relative to the supplied calendar (which incorporates a time zone).
[中]相对于提供的日历(包含时区),重新计算此时间段的开始日期/时间和结束日期/时间。
代码示例来源:origin: jfree/jfreechart
/**
* Creates a time period representing the week in the specified year.
*
* @param week the week (1 to 53).
* @param year the year (1900 to 9999).
*/
public Week(int week, int year) {
if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
throw new IllegalArgumentException(
"The 'week' argument must be in the range 1 - 53.");
}
this.week = (byte) week;
this.year = (short) year;
peg(Calendar.getInstance());
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Creates a time period representing the week in the specified year.
*
* @param week the week (1 to 53).
* @param year the year (1900 to 9999).
*/
public Week(int week, int year) {
if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
throw new IllegalArgumentException(
"The 'week' argument must be in the range 1 - 53.");
}
this.week = (byte) week;
this.year = (short) year;
peg(Calendar.getInstance());
}
代码示例来源:origin: jfree/jfreechart
/**
* Creates a time period representing the week in the specified year.
*
* @param week the week (1 to 53).
* @param year the year (1900 to 9999).
*/
public Week(int week, Year year) {
if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
throw new IllegalArgumentException(
"The 'week' argument must be in the range 1 - 53.");
}
this.week = (byte) week;
this.year = (short) year.getYear();
peg(Calendar.getInstance());
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Creates a time period representing the week in the specified year.
*
* @param week the week (1 to 53).
* @param year the year (1900 to 9999).
*/
public Week(int week, Year year) {
if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
throw new IllegalArgumentException(
"The 'week' argument must be in the range 1 - 53.");
}
this.week = (byte) week;
this.year = (short) year.getYear();
peg(Calendar.getInstance());
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
peg(calendar);
代码示例来源:origin: jfree/jfreechart
peg(calendar);
内容来源于网络,如有侵权,请联系作者删除!