org.jfree.data.time.Week.peg()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.jfree.data.time.Week.peg()方法的一些代码示例,展示了Week.peg()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Week.peg()方法的具体详情如下:
包路径:org.jfree.data.time.Week
类名称:Week
方法名:peg

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);

相关文章