|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.scale.DatePeriod
public class DatePeriod
A DatePeriod defines a period based on Calendar
fields for use in a DateScaleModel
.
getDefaultDatePeriods()
,
Serialized FormField Summary | |
---|---|
static DatePeriod |
AM_PM
|
static DatePeriod |
CENTURY
|
static DatePeriod |
DAY_OF_MONTH
|
static DatePeriod |
DAY_OF_WEEK
|
static DatePeriod |
DAY_OF_WEEK_IN_MONTH
|
static DatePeriod |
DAY_OF_YEAR
|
static DatePeriod |
DECENNIUM
|
static DatePeriod |
FIRST_DAY_OF_WEEK
|
static DatePeriod |
HOUR
|
static DatePeriod |
HOUR_OF_DAY
|
static DatePeriod |
MILLENIUM
|
static DatePeriod |
MILLISECOND
|
static DatePeriod |
MINUTE
|
static DatePeriod |
MONTH
|
static DatePeriod |
QUARTER
|
static DatePeriod |
SECOND
|
static DatePeriod |
WEEK_OF_MONTH
|
static DatePeriod |
WEEK_OF_YEAR
|
static DatePeriod |
YEAR
|
Constructor Summary | |
---|---|
DatePeriod(int calendarField,
int amount,
int offset)
Defines a new period with last the amount of calendar field starting at the specified offset. |
Method Summary | |
---|---|
int |
getAmount()
Gets the amount of base field per period. |
int |
getCalendarField()
Gets The base Calendar field of this period as in the Calendar class. |
static List<DatePeriod> |
getDefaultDatePeriods()
Gets the list of predefined DatePeriods, from smallest to the largest. |
int |
getOffset()
Gets the offset from the Calendar field start |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DatePeriod MILLENIUM
public static final DatePeriod CENTURY
public static final DatePeriod DECENNIUM
public static final DatePeriod YEAR
public static final DatePeriod QUARTER
public static final DatePeriod MONTH
public static final DatePeriod WEEK_OF_YEAR
public static final DatePeriod FIRST_DAY_OF_WEEK
public static final DatePeriod WEEK_OF_MONTH
public static final DatePeriod DAY_OF_WEEK
public static final DatePeriod DAY_OF_MONTH
public static final DatePeriod DAY_OF_WEEK_IN_MONTH
public static final DatePeriod DAY_OF_YEAR
public static final DatePeriod AM_PM
public static final DatePeriod HOUR
public static final DatePeriod HOUR_OF_DAY
public static final DatePeriod MINUTE
public static final DatePeriod SECOND
public static final DatePeriod MILLISECOND
Constructor Detail |
---|
public DatePeriod(int calendarField, int amount, int offset)
calendarField
- The base Calendar field of this period, for example Calendar.MONTH.amount
- The amount of base field per period, for example 6 for six months.offset
- The offset from the Calendar field start, for example Calendar.APRIL to start the periods
interval at April.Method Detail |
---|
public int getCalendarField()
public int getAmount()
public int getOffset()
public String toString()
toString
in class Object
public static List<DatePeriod> getDefaultDatePeriods()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |