|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeLineModel
The model for a time line.
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
Field Summary | |
---|---|
static String |
ALL_NODES_REMOVED
|
static String |
NODE_ADDED
|
static String |
NODE_REMOVED
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
add a property change listener to the time line. |
void |
addTimeLineNode(TimeLineNodeModel node)
add a time line node to the time line without checking its legality |
boolean |
contains(TimeLineNodeModel model)
returns whether or not the model contains the specified node |
Date |
getDateForTime(Time time)
takes a time and converts it into a date where the new date is equal to the start date + the time |
Time |
getEndTime()
get the ending value of the timeline |
int |
getIntervalCount()
get the number of intervals in the time line |
Date |
getStartDate()
get the start date |
Time |
getStartTime()
get the starting value in the timeline |
Time |
getTimeForDate(Date date)
takes a date and convert it to a time where the new time is equal to the date - start date |
List |
getTimeLineNodes()
get the time line nodes in a uneditable list |
Iterator |
getTimeLineNodesIterator()
get an iterator for the time line nodes |
void |
removeAllTimeLineNodes()
remove all time line nodes from time line |
void |
removePropertyChangeListener(PropertyChangeListener listener)
remove a property change listener from the time line |
void |
removeTimeLineNode(TimeLineNodeModel node)
remove a time line node from the time line |
void |
setStartDate(Date date)
set the date from which the timeline should start Note: if the date is not null then all time values are considered offsets from it |
Field Detail |
---|
static final String NODE_ADDED
static final String NODE_REMOVED
static final String ALL_NODES_REMOVED
Method Detail |
---|
void addTimeLineNode(TimeLineNodeModel node)
void removeTimeLineNode(TimeLineNodeModel node)
void removeAllTimeLineNodes()
int getIntervalCount()
Iterator getTimeLineNodesIterator()
List getTimeLineNodes()
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
Date getDateForTime(Time time)
Time getTimeForDate(Date date)
void setStartDate(Date date)
Date getStartDate()
Time getStartTime()
Time getEndTime()
boolean contains(TimeLineNodeModel model)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |