public class

RepeatedTimePeriod

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.RepeatedTimePeriod

Class Overview

Represents a repeating period of time. Each period has a start date and length, and a frequency at which the period repeats. Instances of RepeatedTimePeriod can be given to a DateTimeAxis to instruct it to repeatedly skip certain ranges, without having to specify each individual skip range up front.

Summary

Public Constructors
RepeatedTimePeriod(Date start, DateFrequency length, DateFrequency frequency)
Constructs a RepeatedTimePeriod.
Public Methods
boolean equals(Object o)
DateFrequency getFrequency()
Returns the frequency at which this period repeats, expressed as a DateFrequency.
DateFrequency getLength()
Returns the length of this time period, as an amount of time expressed as a DateFrequency.
Date getStart()
Returns the start date for this time period.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RepeatedTimePeriod (Date start, DateFrequency length, DateFrequency frequency)

Constructs a RepeatedTimePeriod.

Parameters
start a java.util.Date to signify the beginning of a RepeatedTimePeriod
length an amount of time, expressed as a DateFrequency, denoting the length of the period from start
frequency the frequency at the which the period repeats, expressed as a DateFrequency

Public Methods

public boolean equals (Object o)

public DateFrequency getFrequency ()

Returns the frequency at which this period repeats, expressed as a DateFrequency.

Returns
  • the frequency at which this period repeats

public DateFrequency getLength ()

Returns the length of this time period, as an amount of time expressed as a DateFrequency.

Returns
  • the length of this time period

public Date getStart ()

Returns the start date for this time period.

Returns
  • the start date for this time period

public int hashCode ()