Uses of Class
org.jfree.data.time.RegularTimePeriod
| Package | Description |
|---|---|
| org.jfree.chart.axis |
Axis classes and interfaces.
|
| org.jfree.data.time |
Interfaces and classes for time-related data.
|
| org.jfree.data.time.ohlc |
Classes for representing financial data in open-high-low-close form.
|
-
Uses of RegularTimePeriod in org.jfree.chart.axis
Methods in org.jfree.chart.axis that return RegularTimePeriod Modifier and Type Method Description RegularTimePeriodPeriodAxisLabelInfo. createInstance(Date millisecond, TimeZone zone, Locale locale)Creates a time period that includes the specified millisecond, assuming the given time zone.RegularTimePeriodPeriodAxis. getFirst()Returns the first time period in the axis range.RegularTimePeriodPeriodAxis. getLast()Returns the last time period in the axis range.Methods in org.jfree.chart.axis with parameters of type RegularTimePeriod Modifier and Type Method Description voidPeriodAxis. setFirst(RegularTimePeriod first)Sets the first time period in the axis range and sends anAxisChangeEventto all registered listeners.voidPeriodAxis. setLast(RegularTimePeriod last)Sets the last time period in the axis range and sends anAxisChangeEventto all registered listeners.Constructors in org.jfree.chart.axis with parameters of type RegularTimePeriod Constructor Description PeriodAxis(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
Subclasses of RegularTimePeriod in org.jfree.data.time Modifier and Type Class Description classDayRepresents a single day in the range 1-Jan-1900 to 31-Dec-9999.classFixedMillisecondWrapper for ajava.util.Dateobject that allows it to be used as aRegularTimePeriod.classHourRepresents an hour in a specific day.classMillisecondRepresents a millisecond.classMinuteRepresents a minute.classMonthRepresents a single month.classQuarterDefines a quarter (in a given year).classSecondRepresents a second in a particular day.classWeekA calendar week.classYearRepresents a year in the range -9999 to 9999.Fields in org.jfree.data.time declared as RegularTimePeriod Modifier and Type Field Description protected RegularTimePeriod[]DynamicTimeSeriesCollection. pointsInTimeStorage for the x-values.Methods in org.jfree.data.time that return RegularTimePeriod Modifier and Type Method Description RegularTimePeriodDynamicTimeSeriesCollection. 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 RegularTimePeriodRegularTimePeriod. createInstance(Class c, Date millisecond, TimeZone zone, Locale locale)Creates a time period that includes the specified millisecond, assuming the given time zone.RegularTimePeriodDynamicTimeSeriesCollection. getNewestTime()Returns the newest time.RegularTimePeriodTimeSeries. getNextTimePeriod()Returns a time period that would be the next in sequence on the end of the time series.RegularTimePeriodDynamicTimeSeriesCollection. getOldestTime()Returns the oldest time.RegularTimePeriodTimeSeriesDataItem. getPeriod()Returns the time period.RegularTimePeriodTimeSeries. getTimePeriod(int index)Returns the time period at the specified index.RegularTimePeriodDay. next()Returns the day following this one, ornullif some limit has been reached.RegularTimePeriodFixedMillisecond. next()Returns the millisecond following this one.RegularTimePeriodHour. next()Returns the hour following this one.RegularTimePeriodMillisecond. next()Returns the millisecond following this one.RegularTimePeriodMinute. next()Returns the minute following this one.RegularTimePeriodMonth. next()Returns the month following this one.RegularTimePeriodQuarter. next()Returns the quarter following this one.abstract RegularTimePeriodRegularTimePeriod. next()Returns the time period following this one, ornullif some limit has been reached.RegularTimePeriodSecond. next()Returns the second following this one.RegularTimePeriodWeek. next()Returns the week following this one.RegularTimePeriodYear. next()Returns the year following this one.RegularTimePeriodDay. previous()Returns the day preceding this one.RegularTimePeriodFixedMillisecond. previous()Returns the millisecond preceding this one.RegularTimePeriodHour. previous()Returns the hour preceding this one.RegularTimePeriodMillisecond. previous()Returns the millisecond preceding this one.RegularTimePeriodMinute. previous()Returns the minute preceding this one.RegularTimePeriodMonth. previous()Returns the month preceding this one.RegularTimePeriodQuarter. previous()Returns the quarter preceding this one.abstract RegularTimePeriodRegularTimePeriod. previous()Returns the time period preceding this one, ornullif some lower limit has been reached.RegularTimePeriodSecond. previous()Returns the second preceding this one.RegularTimePeriodWeek. previous()Returns the week preceding this one.RegularTimePeriodYear. previous()Returns the year preceding this one.Methods in org.jfree.data.time with parameters of type RegularTimePeriod Modifier and Type Method Description voidTimeSeries. add(RegularTimePeriod period, double value)Adds a new data item to the series and sends aSeriesChangeEventto all registered listeners.voidTimeSeries. add(RegularTimePeriod period, double value, boolean notify)Adds a new data item to the series and sends aSeriesChangeEventto all registered listeners.voidTimeSeries. add(RegularTimePeriod period, Number value)Adds a new data item to the series and sends aSeriesChangeEventto all registered listeners.voidTimeSeries. add(RegularTimePeriod period, Number value, boolean notify)Adds a new data item to the series and sends aSeriesChangeEventto all registered listeners.TimeSeriesDataItemTimeSeries. addOrUpdate(RegularTimePeriod period, double value)Adds or updates an item in the times series and sends aSeriesChangeEventto all registered listeners.TimeSeriesDataItemTimeSeries. addOrUpdate(RegularTimePeriod period, Number value)Adds or updates an item in the times series and sends aSeriesChangeEventto all registered listeners.TimeSeriesTimeSeries. createCopy(RegularTimePeriod start, RegularTimePeriod end)Creates a new timeseries by copying a subset of the data in this time series.voidTimeSeries. delete(RegularTimePeriod period)Deletes the data item for the given time period and sends aSeriesChangeEventto all registered listeners.TimeSeriesDataItemTimeSeries. getDataItem(RegularTimePeriod period)Returns the data item for a specific period.intTimeSeries. getIndex(RegularTimePeriod period)Returns the index for the item (if any) that corresponds to a time period.NumberTimeSeries. getValue(RegularTimePeriod period)Returns the value for a time period.protected longTimeSeriesCollection. getX(RegularTimePeriod period)Returns the x-value for a time period.longDynamicTimeSeriesCollection. setTimeBase(RegularTimePeriod start)Fill the pointsInTime with times using TimePeriod.next(): Will silently return if the time array was already populated.voidTimeSeries. update(RegularTimePeriod period, double value)Updates (changes) the value for a time period.voidTimeSeries. update(RegularTimePeriod period, Number value)Updates (changes) the value for a time period.Constructors in org.jfree.data.time with parameters of type RegularTimePeriod Constructor Description DynamicTimeSeriesCollection(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
Methods in org.jfree.data.time.ohlc that return RegularTimePeriod Modifier and Type Method Description RegularTimePeriodOHLCItem. getPeriod()Returns the period.RegularTimePeriodOHLCSeries. getPeriod(int index)Returns the time period for the specified item.Methods in org.jfree.data.time.ohlc with parameters of type RegularTimePeriod Modifier and Type Method Description voidOHLCSeries. add(RegularTimePeriod period, double open, double high, double low, double close)Adds a data item to the series.protected longOHLCSeriesCollection. getX(RegularTimePeriod period)Returns the x-value for a time period.Constructors in org.jfree.data.time.ohlc with parameters of type RegularTimePeriod Constructor Description OHLCItem(RegularTimePeriod period, double open, double high, double low, double close)Creates a new instance ofOHLCItem.