jsky.timeline
Interface TimeLineNodeModel

All Known Subinterfaces:
VetoableTimeLineNodeModel
All Known Implementing Classes:
DefaultTimeLineNodeModel, DefaultVetoableTimeLineNodeModel

public interface TimeLineNodeModel

The model for a time line node.

This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.

Version:
12/10/99
Author:
M. Fishman

Nested Class Summary
static class TimeLineNodeModel.TimeLineNodeComparator
          inner class used for sorting time line nodes
 
Field Summary
static java.lang.String END_TIME
           
static java.lang.String MODE
           
static java.lang.String NAME
           
static java.lang.String NODE
           
static java.lang.String PARENT
           
static java.lang.String START_TIME
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          add a property change listener to the model
 Time getDuration()
          get the duration of the time line node
 Time getEndTime()
          get the time that this node ends
 java.lang.Class getGUIClass()
          get the gui node class for this model
 TimeLineModel getParent()
          get the time line node's parent
 Time getStartTime()
          get the time that this node starts
 java.lang.String getTimeLineNodeName()
          get the name of the time line node
 boolean intersects(TimeLineNodeModel node)
          returns whether the node intersects the passed in node
 boolean isConstant()
          is the node considered a constant
 void moveTimeLineNodeBy(Time time)
          move node by specified time
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          remove a property change listener from the model
 void setConstant(boolean isConstant)
          set whether or not the node is considered a constant or not
 void setDuration(Time durationLength)
          set the duration of the time line node
 void setEndTime(Time time)
          set the time that this node ends
 void setParent(TimeLineModel parent)
          set the time line node's parent
 void setStartTime(Time time)
          set the point on the time line that this node starts
 void setTimeLineNode(Time start, Time end)
          move node to a specified location
 void setTimeLineNodeName(java.lang.String name)
          give the time line node a name
 

Field Detail

MODE

static final java.lang.String MODE
See Also:
Constant Field Values

START_TIME

static final java.lang.String START_TIME
See Also:
Constant Field Values

END_TIME

static final java.lang.String END_TIME
See Also:
Constant Field Values

NODE

static final java.lang.String NODE
See Also:
Constant Field Values

NAME

static final java.lang.String NAME
See Also:
Constant Field Values

PARENT

static final java.lang.String PARENT
See Also:
Constant Field Values
Method Detail

getStartTime

Time getStartTime()
get the time that this node starts


setStartTime

void setStartTime(Time time)
set the point on the time line that this node starts


getEndTime

Time getEndTime()
get the time that this node ends


setEndTime

void setEndTime(Time time)
set the time that this node ends


moveTimeLineNodeBy

void moveTimeLineNodeBy(Time time)
move node by specified time


getDuration

Time getDuration()
get the duration of the time line node


setDuration

void setDuration(Time durationLength)
set the duration of the time line node


setTimeLineNodeName

void setTimeLineNodeName(java.lang.String name)
give the time line node a name


getTimeLineNodeName

java.lang.String getTimeLineNodeName()
get the name of the time line node


intersects

boolean intersects(TimeLineNodeModel node)
returns whether the node intersects the passed in node


setTimeLineNode

void setTimeLineNode(Time start,
                     Time end)
move node to a specified location


addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
add a property change listener to the model


removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
remove a property change listener from the model


getParent

TimeLineModel getParent()
get the time line node's parent


setParent

void setParent(TimeLineModel parent)
set the time line node's parent


isConstant

boolean isConstant()
is the node considered a constant


setConstant

void setConstant(boolean isConstant)
set whether or not the node is considered a constant or not


getGUIClass

java.lang.Class getGUIClass()
get the gui node class for this model