Package | Description |
---|---|
org.jfree.chart.date |
Date-related classes formerly in the JCommon class library.
|
org.jfree.data.time |
Interfaces and classes for time-related data.
|
Modifier and Type | Class and Description |
---|---|
class |
SpreadsheetDate
Represents a date using an integer, in a similar fashion to the
implementation in Microsoft Excel.
|
Modifier and Type | Method and Description |
---|---|
static SerialDate |
SerialDate.addDays(int days,
SerialDate base)
Creates a new date by adding the specified number of days to the base
date.
|
static SerialDate |
SerialDate.addMonths(int months,
SerialDate base)
Creates a new date by adding the specified number of months to the base
date.
|
static SerialDate |
SerialDate.addYears(int years,
SerialDate base)
Creates a new date by adding the specified number of years to the base
date.
|
static SerialDate |
SerialDate.createInstance(Date date)
Factory method that returns an instance of a subclass of SerialDate.
|
static SerialDate |
SerialDate.createInstance(int serial)
Factory method that returns an instance of some concrete subclass of
SerialDate . |
static SerialDate |
SerialDate.createInstance(int day,
int month,
int yyyy)
Factory method that returns an instance of some concrete subclass of
SerialDate . |
SerialDate |
SerialDate.getEndOfCurrentMonth(SerialDate base)
Rolls the date forward to the last day of the month.
|
SerialDate |
SerialDate.getFollowingDayOfWeek(int targetDOW)
Returns the earliest date that falls on the specified day-of-the-week
and is AFTER this date.
|
static SerialDate |
SerialDate.getFollowingDayOfWeek(int targetWeekday,
SerialDate base)
Returns the earliest date that falls on the specified day-of-the-week
and is AFTER the base date.
|
SerialDate |
SerialDate.getNearestDayOfWeek(int targetDOW)
Returns the nearest date that falls on the specified day-of-the-week.
|
static SerialDate |
SerialDate.getNearestDayOfWeek(int targetDOW,
SerialDate base)
Returns the date that falls on the specified day-of-the-week and is
CLOSEST to the base date.
|
SerialDate |
SerialDate.getPreviousDayOfWeek(int targetDOW)
Returns the latest date that falls on the specified day-of-the-week and
is BEFORE this date.
|
static SerialDate |
SerialDate.getPreviousDayOfWeek(int targetWeekday,
SerialDate base)
Returns the latest date that falls on the specified day-of-the-week and
is BEFORE the base date.
|
Modifier and Type | Method and Description |
---|---|
static SerialDate |
SerialDate.addDays(int days,
SerialDate base)
Creates a new date by adding the specified number of days to the base
date.
|
static SerialDate |
SerialDate.addMonths(int months,
SerialDate base)
Creates a new date by adding the specified number of months to the base
date.
|
static SerialDate |
SerialDate.addYears(int years,
SerialDate base)
Creates a new date by adding the specified number of years to the base
date.
|
int |
SpreadsheetDate.compare(SerialDate other)
Returns the difference (in days) between this date and the specified
'other' date.
|
abstract int |
SerialDate.compare(SerialDate other)
Returns the difference (in days) between this date and the specified
'other' date.
|
SerialDate |
SerialDate.getEndOfCurrentMonth(SerialDate base)
Rolls the date forward to the last day of the month.
|
static SerialDate |
SerialDate.getFollowingDayOfWeek(int targetWeekday,
SerialDate base)
Returns the earliest date that falls on the specified day-of-the-week
and is AFTER the base date.
|
static SerialDate |
SerialDate.getNearestDayOfWeek(int targetDOW,
SerialDate base)
Returns the date that falls on the specified day-of-the-week and is
CLOSEST to the base date.
|
static SerialDate |
SerialDate.getPreviousDayOfWeek(int targetWeekday,
SerialDate base)
Returns the latest date that falls on the specified day-of-the-week and
is BEFORE the base date.
|
boolean |
SpreadsheetDate.isAfter(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
abstract boolean |
SerialDate.isAfter(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
boolean |
SpreadsheetDate.isBefore(SerialDate other)
Returns true if this SerialDate represents an earlier date compared to
the specified SerialDate.
|
abstract boolean |
SerialDate.isBefore(SerialDate other)
Returns true if this SerialDate represents an earlier date compared to
the specified SerialDate.
|
boolean |
SpreadsheetDate.isInRange(SerialDate d1,
SerialDate d2)
Returns
true if this SerialDate is within the
specified range (INCLUSIVE). |
abstract boolean |
SerialDate.isInRange(SerialDate d1,
SerialDate d2)
Returns
true if this SerialDate is within the
specified range (INCLUSIVE). |
boolean |
SpreadsheetDate.isInRange(SerialDate d1,
SerialDate d2,
int include)
Returns true if this SerialDate is within the specified range (caller
specifies whether or not the end-points are included).
|
abstract boolean |
SerialDate.isInRange(SerialDate d1,
SerialDate d2,
int include)
Returns
true if this SerialDate is within the
specified range (caller specifies whether or not the end-points are
included). |
boolean |
SpreadsheetDate.isOn(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
abstract boolean |
SerialDate.isOn(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
boolean |
SpreadsheetDate.isOnOrAfter(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
abstract boolean |
SerialDate.isOnOrAfter(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
boolean |
SpreadsheetDate.isOnOrBefore(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
abstract boolean |
SerialDate.isOnOrBefore(SerialDate other)
Returns true if this SerialDate represents the same date as the
specified SerialDate.
|
Modifier and Type | Method and Description |
---|---|
SerialDate |
Day.getSerialDate()
Returns the day as a
SerialDate . |
Constructor and Description |
---|
Day(SerialDate serialDate)
Constructs a new one day time period.
|
Copyright © 2001–2017 JFree.org. All rights reserved.