jsky.timeline
Class DefaultTimeLineNodeModel

java.lang.Object
  extended by jsky.timeline.DefaultTimeLineNodeModel
All Implemented Interfaces:
TimeLineNodeModel
Direct Known Subclasses:
DefaultVetoableTimeLineNodeModel

public class DefaultTimeLineNodeModel
extends java.lang.Object
implements TimeLineNodeModel

Default version of the time line node model.

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
 
Nested classes/interfaces inherited from interface jsky.timeline.TimeLineNodeModel
TimeLineNodeModel.TimeLineNodeComparator
 
Field Summary
 
Fields inherited from interface jsky.timeline.TimeLineNodeModel
END_TIME, MODE, NAME, NODE, PARENT, START_TIME
 
Constructor Summary
DefaultTimeLineNodeModel(Time start, Time end)
          constructor
DefaultTimeLineNodeModel(Time startTime, Time endTime, java.lang.String name)
           
DefaultTimeLineNodeModel(Time startTime, Time endTime, java.lang.String name, boolean isConstant)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          add a property change listener to the node
 Time getDuration()
          get the duration of the time line node
 Time getEndTime()
          get the time on the time line 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 on the time line 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 amount
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          remove a propertyChangeListener to the node
 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 on the time line that this node ends
 void setParent(TimeLineModel parent)
          set the time line node's parent
 void setStartTime(Time time)
          set the time 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTimeLineNodeModel

public DefaultTimeLineNodeModel(Time start,
                                Time end)
constructor


DefaultTimeLineNodeModel

public DefaultTimeLineNodeModel(Time startTime,
                                Time endTime,
                                java.lang.String name)

DefaultTimeLineNodeModel

public DefaultTimeLineNodeModel(Time startTime,
                                Time endTime,
                                java.lang.String name,
                                boolean isConstant)
Method Detail

getStartTime

public Time getStartTime()
get the time on the time line that this node starts

Specified by:
getStartTime in interface TimeLineNodeModel

setStartTime

public void setStartTime(Time time)
set the time that this node starts

Specified by:
setStartTime in interface TimeLineNodeModel

moveTimeLineNodeBy

public void moveTimeLineNodeBy(Time time)
move node by specified amount

Specified by:
moveTimeLineNodeBy in interface TimeLineNodeModel

getEndTime

public Time getEndTime()
get the time on the time line that this node ends

Specified by:
getEndTime in interface TimeLineNodeModel

setEndTime

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

Specified by:
setEndTime in interface TimeLineNodeModel

getDuration

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

Specified by:
getDuration in interface TimeLineNodeModel

setDuration

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

Specified by:
setDuration in interface TimeLineNodeModel

addPropertyChangeListener

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

Specified by:
addPropertyChangeListener in interface TimeLineNodeModel

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
remove a propertyChangeListener to the node

Specified by:
removePropertyChangeListener in interface TimeLineNodeModel

setTimeLineNodeName

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

Specified by:
setTimeLineNodeName in interface TimeLineNodeModel

getTimeLineNodeName

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

Specified by:
getTimeLineNodeName in interface TimeLineNodeModel

intersects

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

Specified by:
intersects in interface TimeLineNodeModel

getParent

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

Specified by:
getParent in interface TimeLineNodeModel

setParent

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

Specified by:
setParent in interface TimeLineNodeModel

setTimeLineNode

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

Specified by:
setTimeLineNode in interface TimeLineNodeModel

isConstant

public boolean isConstant()
is the node considered a constant

Specified by:
isConstant in interface TimeLineNodeModel

setConstant

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

Specified by:
setConstant in interface TimeLineNodeModel

getGUIClass

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

Specified by:
getGUIClass in interface TimeLineNodeModel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object