public class

DateRange

extends Range<T extends Comparable<T>>
java.lang.Object
   ↳ com.shinobicontrols.charts.Range<T extends java.lang.Comparable<T>>
     ↳ com.shinobicontrols.charts.DateRange

Class Overview

Subclass of Range that is specific to Date; each element is represented by a Date. This the range type for a DateTimeAxis.

Summary

Public Constructors
DateRange(Date min, Date max)
Constructs a new DateRange with the specified maximum and minimum values.
Public Methods
Date getMaximum()
Gets the object representing the maximum value for this range.
Date getMinimum()
Gets the object representing the minimum value for this range.
double getSpan()
Returns a double representing the total value difference between the minimum and maximum, in seconds.
[Expand]
Inherited Methods
From class com.shinobicontrols.charts.Range
From class java.lang.Object

Public Constructors

public DateRange (Date min, Date max)

Constructs a new DateRange with the specified maximum and minimum values.

Parameters
min The minimum value for this date range
max The maximum value for this date range

Public Methods

public Date getMaximum ()

Gets the object representing the maximum value for this range.

Returns
  • The object representing the maximum value for this range

public Date getMinimum ()

Gets the object representing the minimum value for this range.

Returns
  • The object representing the minimum value for this range.

public double getSpan ()

Returns a double representing the total value difference between the minimum and maximum, in seconds.

Returns
  • The total value difference between the minimum and maximum, in seconds