public class DefaultTimeLineNodeModel extends Object implements TimeLineNodeModel
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
TimeLineNodeModel.TimeLineNodeComparator
END_TIME, MODE, NAME, NODE, PARENT, START_TIME
Constructor and Description |
---|
DefaultTimeLineNodeModel(Time start,
Time end)
constructor
|
DefaultTimeLineNodeModel(Time startTime,
Time endTime,
String name) |
DefaultTimeLineNodeModel(Time startTime,
Time endTime,
String name,
boolean isConstant) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(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
|
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
|
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(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(String name)
give the time line node a name
|
String |
toString() |
public Time getStartTime()
getStartTime
in interface TimeLineNodeModel
public void setStartTime(Time time)
setStartTime
in interface TimeLineNodeModel
public void moveTimeLineNodeBy(Time time)
moveTimeLineNodeBy
in interface TimeLineNodeModel
public Time getEndTime()
getEndTime
in interface TimeLineNodeModel
public void setEndTime(Time time)
setEndTime
in interface TimeLineNodeModel
public Time getDuration()
getDuration
in interface TimeLineNodeModel
public void setDuration(Time durationLength)
setDuration
in interface TimeLineNodeModel
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface TimeLineNodeModel
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface TimeLineNodeModel
public void setTimeLineNodeName(String name)
setTimeLineNodeName
in interface TimeLineNodeModel
public String getTimeLineNodeName()
getTimeLineNodeName
in interface TimeLineNodeModel
public boolean intersects(TimeLineNodeModel node)
intersects
in interface TimeLineNodeModel
public TimeLineModel getParent()
getParent
in interface TimeLineNodeModel
public void setParent(TimeLineModel parent)
setParent
in interface TimeLineNodeModel
public void setTimeLineNode(Time start, Time end)
setTimeLineNode
in interface TimeLineNodeModel
public boolean isConstant()
isConstant
in interface TimeLineNodeModel
public void setConstant(boolean isConstant)
setConstant
in interface TimeLineNodeModel
public Class getGUIClass()
getGUIClass
in interface TimeLineNodeModel
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.