Save This Page
Home » jcommon-1.0.13 » org.jfree.date » [javadoc | source]
org.jfree.date
public class: DayAndMonthRule [javadoc | source]
java.lang.Object
   org.jfree.date.AnnualDateRule
      org.jfree.date.DayAndMonthRule

All Implemented Interfaces:
    Cloneable

An annual date rule where the generated date always falls on the same day and month each year.

An example is ANZAC Day in Australia and New Zealand: it is observed on 25 April of every year.

Constructor:
 public DayAndMonthRule() 
 public DayAndMonthRule(int dayOfMonth,
    int month) 
Method from org.jfree.date.DayAndMonthRule Summary:
getDate,   getDayOfMonth,   getMonth,   setDayOfMonth,   setMonth
Methods from org.jfree.date.AnnualDateRule:
clone,   getDate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.date.DayAndMonthRule Detail:
 public SerialDate getDate(int yyyy) 
    Returns the date, given the year.
 public int getDayOfMonth() 
    Returns the day of the month.
 public int getMonth() 
    Returns an integer code representing the month.

    The codes JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER and DECEMBER are defined in the SerialDate class.

 public  void setDayOfMonth(int dayOfMonth) 
    Sets the day-of-the-month for this rule.
 public  void setMonth(int month) 
    Sets the month for this rule.