public class DefaultVetoableTimeLineNodeModel extends DefaultTimeLineNodeModel implements VetoableTimeLineNodeModel
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
TimeLineNodeModel.TimeLineNodeComparator
Modifier and Type | Field and Description |
---|---|
protected VetoableChangeSupport |
fChangeSupport |
BIC, HIT_LEFT_EDGE, HIT_RIGHT_EDGE, NODE_MAX_SIZE_EXCEEDED, NODE_MIN_SIZE_EXCEEDED, NODE_OVERLAP
END_TIME, MODE, NAME, NODE, PARENT, START_TIME
Constructor and Description |
---|
DefaultVetoableTimeLineNodeModel(Time start,
Time end)
constructor
|
DefaultVetoableTimeLineNodeModel(Time startTime,
Time endTime,
String name) |
DefaultVetoableTimeLineNodeModel(Time startTime,
Time endTime,
String name,
boolean isConstant) |
Modifier and Type | Method and Description |
---|---|
void |
addVetoableChangeListener(VetoableChangeListener listener)
add a property change listener to the node
|
void |
moveTimeLineNodeByValid(Time time)
move node by specified amount
|
void |
removeVetoableChangeListener(VetoableChangeListener listener)
remove a propertyChangeListener to the node
|
void |
revertToPrevious()
revert the time line node to its previous position
|
void |
setValidDuration(Time durationLength)
set the duration of the time line node
|
void |
setValidEndTime(Time time)
set the time on the time line that this node ends
|
void |
setValidStartTime(Time time)
set the time that this node starts
|
void |
setValidTimeLineNode(Time start,
Time end)
move node to a specified location
|
void |
vetoableChange(PropertyChangeEvent evt) |
addPropertyChangeListener, getDuration, getEndTime, getGUIClass, getParent, getStartTime, getTimeLineNodeName, intersects, isConstant, moveTimeLineNodeBy, removePropertyChangeListener, setConstant, setDuration, setEndTime, setParent, setStartTime, setTimeLineNode, setTimeLineNodeName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, getDuration, getEndTime, getGUIClass, getParent, getStartTime, getTimeLineNodeName, intersects, isConstant, moveTimeLineNodeBy, removePropertyChangeListener, setConstant, setDuration, setEndTime, setParent, setStartTime, setTimeLineNode, setTimeLineNodeName
protected VetoableChangeSupport fChangeSupport
public DefaultVetoableTimeLineNodeModel(Time start, Time end)
public DefaultVetoableTimeLineNodeModel(Time startTime, Time endTime, String name)
public void setValidStartTime(Time time) throws DetailedPropertyVetoException
setValidStartTime
in interface VetoableTimeLineNodeModel
DetailedPropertyVetoException
public void moveTimeLineNodeByValid(Time time) throws DetailedPropertyVetoException
moveTimeLineNodeByValid
in interface VetoableTimeLineNodeModel
DetailedPropertyVetoException
public void setValidEndTime(Time time) throws DetailedPropertyVetoException
setValidEndTime
in interface VetoableTimeLineNodeModel
DetailedPropertyVetoException
public void setValidDuration(Time durationLength) throws DetailedPropertyVetoException
setValidDuration
in interface VetoableTimeLineNodeModel
DetailedPropertyVetoException
public void addVetoableChangeListener(VetoableChangeListener listener)
addVetoableChangeListener
in interface VetoableTimeLineNodeModel
public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener
in interface VetoableTimeLineNodeModel
public void revertToPrevious()
revertToPrevious
in interface VetoableTimeLineNodeModel
public void vetoableChange(PropertyChangeEvent evt) throws DetailedPropertyVetoException
vetoableChange
in interface VetoableChangeListener
DetailedPropertyVetoException
public void setValidTimeLineNode(Time start, Time end) throws DetailedPropertyVetoException
setValidTimeLineNode
in interface VetoableTimeLineNodeModel
DetailedPropertyVetoException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.