| java.lang.Object org.jfree.date.AnnualDateRule org.jfree.date.DayOfWeekInMonthRule
DayOfWeekInMonthRule | public class DayOfWeekInMonthRule extends AnnualDateRule (Code) | | An annual date rule that specifies the nth day of the week in a given month
(for example, the third Wednesday in June, or the last Friday in November).
author: David Gilbert |
Constructor Summary | |
public | DayOfWeekInMonthRule() Default constructor: builds a rule for the first Monday in January by default. | public | DayOfWeekInMonthRule(int count, int dayOfWeek, int month) Standard constructor: builds a rule with the specified attributes. |
Method Summary | |
public int | getCount() Returns the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST). | public SerialDate | getDate(int year) Return the date for this rule, given the year.
Parameters: year - the year. | public int | getDayOfWeek() Returns the day-of-the-week for this rule (SerialDate.MONDAY, SerialDate.TUESDAY, etc.). | public int | getMonth() Returns the month for this rule. | public void | setCount(int count) Sets the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST). | public void | setDayOfWeek(int dayOfWeek) Sets the day-of-the-week for this rule. | public void | setMonth(int month) Sets the month for this rule. |
DayOfWeekInMonthRule | public DayOfWeekInMonthRule()(Code) | | Default constructor: builds a rule for the first Monday in January by default.
|
DayOfWeekInMonthRule | public DayOfWeekInMonthRule(int count, int dayOfWeek, int month)(Code) | | Standard constructor: builds a rule with the specified attributes.
Parameters: count - one of: FIRST, SECOND, THIRD, FOURTH or LAST. Parameters: dayOfWeek - the day-of-the-week (SerialDate.MONDAY, SerialDate.TUESDAY, etc.). Parameters: month - the month (SerialDate.JANUARY, SerialDate.FEBRUARY, etc.). |
getCount | public int getCount()(Code) | | Returns the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST).
the 'count'. |
getDate | public SerialDate getDate(int year)(Code) | | Return the date for this rule, given the year.
Parameters: year - the year. the date generated by the rule for the given year. |
getDayOfWeek | public int getDayOfWeek()(Code) | | Returns the day-of-the-week for this rule (SerialDate.MONDAY, SerialDate.TUESDAY, etc.).
the day-of-the-week. |
getMonth | public int getMonth()(Code) | | Returns the month for this rule.
the month. |
setCount | public void setCount(int count)(Code) | | Sets the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST).
Parameters: count - the 'count'. |
setDayOfWeek | public void setDayOfWeek(int dayOfWeek)(Code) | | Sets the day-of-the-week for this rule.
Parameters: dayOfWeek - the day-of-the-week. |
setMonth | public void setMonth(int month)(Code) | | Sets the month for this rule.
Parameters: month - the month (SerialDate.JANUARY, SerialDate.FEBRUARY, etc.). |
|
|