public interface TimeLineModel
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
Modifier and Type | Field and Description |
---|---|
static String |
ALL_NODES_REMOVED |
static String |
NODE_ADDED |
static String |
NODE_REMOVED |
Modifier and Type | Method and Description |
---|---|
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
|
static final String NODE_ADDED
static final String NODE_REMOVED
static final String ALL_NODES_REMOVED
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)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.