Uses of Class
org.jfree.data.time.RegularTimePeriod
-
Uses of RegularTimePeriod in org.jfree.chart.axis
Modifier and TypeMethodDescriptionPeriodAxisLabelInfo.createInstance
(Date millisecond, TimeZone zone, Locale locale) Creates a time period that includes the specified millisecond, assuming the given time zone.PeriodAxis.getFirst()
Returns the first time period in the axis range.PeriodAxis.getLast()
Returns the last time period in the axis range.Modifier and TypeMethodDescriptionvoid
PeriodAxis.setFirst
(RegularTimePeriod first) Sets the first time period in the axis range and sends anAxisChangeEvent
to all registered listeners.void
PeriodAxis.setLast
(RegularTimePeriod last) Sets the last time period in the axis range and sends anAxisChangeEvent
to all registered listeners.ModifierConstructorDescriptionPeriodAxis
(String label, RegularTimePeriod first, RegularTimePeriod last) Creates a new axis.PeriodAxis
(String label, RegularTimePeriod first, RegularTimePeriod last, TimeZone timeZone, Locale locale) Creates a new axis. -
Uses of RegularTimePeriod in org.jfree.data.time
Modifier and TypeClassDescriptionclass
Represents a single day in the range 1-Jan-1900 to 31-Dec-9999.class
Wrapper for ajava.util.Date
object that allows it to be used as aRegularTimePeriod
.class
Represents an hour in a specific day.class
Represents a millisecond.class
Represents a minute.class
Represents a single month.class
Defines a quarter (in a given year).class
Represents a second in a particular day.class
A calendar week.class
Represents a year in the range -9999 to 9999.Modifier and TypeFieldDescriptionprotected RegularTimePeriod[]
DynamicTimeSeriesCollection.pointsInTime
Storage for the x-values.Modifier and TypeMethodDescriptionDynamicTimeSeriesCollection.advanceTime()
Adjust the array offset as needed when a new time-period is added: Increments the indices "oldestAt" and "newestAt", mod(array length), zeroes the series values at newestAt, returns the new TimePeriod.static RegularTimePeriod
RegularTimePeriod.createInstance
(Class c, Date millisecond, TimeZone zone, Locale locale) Creates a time period that includes the specified millisecond, assuming the given time zone.DynamicTimeSeriesCollection.getNewestTime()
Returns the newest time.TimeSeries.getNextTimePeriod()
Returns a time period that would be the next in sequence on the end of the time series.DynamicTimeSeriesCollection.getOldestTime()
Returns the oldest time.TimeSeriesDataItem.getPeriod()
Returns the time period.TimeSeries.getTimePeriod
(int index) Returns the time period at the specified index.Day.next()
Returns the day following this one, ornull
if some limit has been reached.FixedMillisecond.next()
Returns the millisecond following this one.Hour.next()
Returns the hour following this one.Millisecond.next()
Returns the millisecond following this one.Minute.next()
Returns the minute following this one.Month.next()
Returns the month following this one.Quarter.next()
Returns the quarter following this one.abstract RegularTimePeriod
RegularTimePeriod.next()
Returns the time period following this one, ornull
if some limit has been reached.Second.next()
Returns the second following this one.Week.next()
Returns the week following this one.Year.next()
Returns the year following this one.Day.previous()
Returns the day preceding this one.FixedMillisecond.previous()
Returns the millisecond preceding this one.Hour.previous()
Returns the hour preceding this one.Millisecond.previous()
Returns the millisecond preceding this one.Minute.previous()
Returns the minute preceding this one.Month.previous()
Returns the month preceding this one.Quarter.previous()
Returns the quarter preceding this one.abstract RegularTimePeriod
RegularTimePeriod.previous()
Returns the time period preceding this one, ornull
if some lower limit has been reached.Second.previous()
Returns the second preceding this one.Week.previous()
Returns the week preceding this one.Year.previous()
Returns the year preceding this one.Modifier and TypeMethodDescriptionvoid
TimeSeries.add
(RegularTimePeriod period, double value) Adds a new data item to the series and sends aSeriesChangeEvent
to all registered listeners.void
TimeSeries.add
(RegularTimePeriod period, double value, boolean notify) Adds a new data item to the series and sends aSeriesChangeEvent
to all registered listeners.void
TimeSeries.add
(RegularTimePeriod period, Number value) Adds a new data item to the series and sends aSeriesChangeEvent
to all registered listeners.void
TimeSeries.add
(RegularTimePeriod period, Number value, boolean notify) Adds a new data item to the series and sends aSeriesChangeEvent
to all registered listeners.TimeSeries.addOrUpdate
(RegularTimePeriod period, double value) Adds or updates an item in the times series and sends aSeriesChangeEvent
to all registered listeners.TimeSeries.addOrUpdate
(RegularTimePeriod period, Number value) Adds or updates an item in the times series and sends aSeriesChangeEvent
to all registered listeners.TimeSeries.createCopy
(RegularTimePeriod start, RegularTimePeriod end) Creates a new timeseries by copying a subset of the data in this time series.void
TimeSeries.delete
(RegularTimePeriod period) Deletes the data item for the given time period and sends aSeriesChangeEvent
to all registered listeners.TimeSeries.getDataItem
(RegularTimePeriod period) Returns the data item for a specific period.int
TimeSeries.getIndex
(RegularTimePeriod period) Returns the index for the item (if any) that corresponds to a time period.TimeSeries.getValue
(RegularTimePeriod period) Returns the value for a time period.protected long
TimeSeriesCollection.getX
(RegularTimePeriod period) Returns the x-value for a time period.long
DynamicTimeSeriesCollection.setTimeBase
(RegularTimePeriod start) Fill the pointsInTime with times using TimePeriod.next(): Will silently return if the time array was already populated.void
TimeSeries.update
(RegularTimePeriod period, double value) Updates (changes) the value for a time period.void
TimeSeries.update
(RegularTimePeriod period, Number value) Updates (changes) the value for a time period.ModifierConstructorDescriptionDynamicTimeSeriesCollection
(int nSeries, int nMoments, RegularTimePeriod timeSample) Creates a new dataset.DynamicTimeSeriesCollection
(int nSeries, int nMoments, RegularTimePeriod timeSample, TimeZone zone) Creates a new dataset.TimeSeriesDataItem
(RegularTimePeriod period, double value) Constructs a new data item that associates a value with a time period.TimeSeriesDataItem
(RegularTimePeriod period, Number value) Constructs a new data item that associates a value with a time period. -
Uses of RegularTimePeriod in org.jfree.data.time.ohlc
Modifier and TypeMethodDescriptionOHLCItem.getPeriod()
Returns the period.OHLCSeries.getPeriod
(int index) Returns the time period for the specified item.Modifier and TypeMethodDescriptionvoid
OHLCSeries.add
(RegularTimePeriod period, double open, double high, double low, double close) Adds a data item to the series.protected long
OHLCSeriesCollection.getX
(RegularTimePeriod period) Returns the x-value for a time period.ModifierConstructorDescriptionOHLCItem
(RegularTimePeriod period, double open, double high, double low, double close) Creates a new instance ofOHLCItem
.