|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.model.TimePosition
public class TimePosition
A Positionable class that makes it easy to create positions on a Time Axis. This class is to a Time Axis as the RealPosition class is to a Numeric Axis.
Constructor Summary | |
---|---|
TimePosition()
Creates a TimePosition using the current system time as the position. |
|
TimePosition(long timeInMillis)
Creates a TimePosition using the supplied long value as the number of milliseconds since January 1st 1970 (as in java.util.Date.getTime()) |
|
TimePosition(String timeString,
DateFormat dateFormat)
Creates a TimePosition using the supplied time string and DateFormat specification. |
Method Summary | |
---|---|
int |
compareTo(Positionable o)
|
boolean |
equals(Object o)
|
Date |
getTime()
Returns a Date instance for the Time encapsulated by this TimePosition. |
int |
hashCode()
|
double |
position()
The position of this instance; used for positioning along an axis in a chart. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimePosition()
public TimePosition(long timeInMillis)
timeInMillis
- the number of milliseconds since January 1st 1970 at 00:00ampublic TimePosition(String timeString, DateFormat dateFormat) throws ParseException
timeString
- the time, represented as a string in the supplied DateFormatdateFormat
- the format of the supplied timeString
ParseException
- if the time string cannot be parsed according to the supplied DateFormatMethod Detail |
---|
public double position()
position
in interface Positionable
public Date getTime()
public int compareTo(Positionable o)
compareTo
in interface Comparable<Positionable>
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |