jsky.timeline
Class DefaultVetoableTimeLineNodeModel

java.lang.Object
  extended by jsky.timeline.DefaultTimeLineNodeModel
      extended by jsky.timeline.DefaultVetoableTimeLineNodeModel
All Implemented Interfaces:
java.beans.VetoableChangeListener, java.util.EventListener, TimeLineNodeModel, VetoableTimeLineNodeModel

public class DefaultVetoableTimeLineNodeModel
extends DefaultTimeLineNodeModel
implements VetoableTimeLineNodeModel

The default class for the vetoable 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
protected  java.beans.VetoableChangeSupport fChangeSupport
           
 
Fields inherited from interface jsky.timeline.VetoableTimeLineNodeModel
BIC, HIT_LEFT_EDGE, HIT_RIGHT_EDGE, NODE_MAX_SIZE_EXCEEDED, NODE_MIN_SIZE_EXCEEDED, NODE_OVERLAP
 
Fields inherited from interface jsky.timeline.TimeLineNodeModel
END_TIME, MODE, NAME, NODE, PARENT, START_TIME
 
Constructor Summary
DefaultVetoableTimeLineNodeModel(Time start, Time end)
          constructor
DefaultVetoableTimeLineNodeModel(Time startTime, Time endTime, java.lang.String name)
           
DefaultVetoableTimeLineNodeModel(Time startTime, Time endTime, java.lang.String name, boolean isConstant)
           
 
Method Summary
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
          add a property change listener to the node
 void moveTimeLineNodeByValid(Time time)
          move node by specified amount
 void removeVetoableChangeListener(java.beans.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(java.beans.PropertyChangeEvent evt)
           
 
Methods inherited from class jsky.timeline.DefaultTimeLineNodeModel
addPropertyChangeListener, getDuration, getEndTime, getGUIClass, getParent, getStartTime, getTimeLineNodeName, intersects, isConstant, moveTimeLineNodeBy, removePropertyChangeListener, setConstant, setDuration, setEndTime, setParent, setStartTime, setTimeLineNode, setTimeLineNodeName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jsky.timeline.TimeLineNodeModel
addPropertyChangeListener, getDuration, getEndTime, getGUIClass, getParent, getStartTime, getTimeLineNodeName, intersects, isConstant, moveTimeLineNodeBy, removePropertyChangeListener, setConstant, setDuration, setEndTime, setParent, setStartTime, setTimeLineNode, setTimeLineNodeName
 

Field Detail

fChangeSupport

protected java.beans.VetoableChangeSupport fChangeSupport
Constructor Detail

DefaultVetoableTimeLineNodeModel

public DefaultVetoableTimeLineNodeModel(Time start,
                                        Time end)
constructor


DefaultVetoableTimeLineNodeModel

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

DefaultVetoableTimeLineNodeModel

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

setValidStartTime

public void setValidStartTime(Time time)
                       throws DetailedPropertyVetoException
set the time that this node starts

Specified by:
setValidStartTime in interface VetoableTimeLineNodeModel
Throws:
DetailedPropertyVetoException

moveTimeLineNodeByValid

public void moveTimeLineNodeByValid(Time time)
                             throws DetailedPropertyVetoException
move node by specified amount

Specified by:
moveTimeLineNodeByValid in interface VetoableTimeLineNodeModel
Throws:
DetailedPropertyVetoException

setValidEndTime

public void setValidEndTime(Time time)
                     throws DetailedPropertyVetoException
set the time on the time line that this node ends

Specified by:
setValidEndTime in interface VetoableTimeLineNodeModel
Throws:
DetailedPropertyVetoException

setValidDuration

public void setValidDuration(Time durationLength)
                      throws DetailedPropertyVetoException
set the duration of the time line node

Specified by:
setValidDuration in interface VetoableTimeLineNodeModel
Throws:
DetailedPropertyVetoException

addVetoableChangeListener

public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
add a property change listener to the node

Specified by:
addVetoableChangeListener in interface VetoableTimeLineNodeModel

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
remove a propertyChangeListener to the node

Specified by:
removeVetoableChangeListener in interface VetoableTimeLineNodeModel

revertToPrevious

public void revertToPrevious()
revert the time line node to its previous position

Specified by:
revertToPrevious in interface VetoableTimeLineNodeModel

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent evt)
                    throws DetailedPropertyVetoException
Specified by:
vetoableChange in interface java.beans.VetoableChangeListener
Throws:
DetailedPropertyVetoException

setValidTimeLineNode

public void setValidTimeLineNode(Time start,
                                 Time end)
                          throws DetailedPropertyVetoException
move node to a specified location

Specified by:
setValidTimeLineNode in interface VetoableTimeLineNodeModel
Throws:
DetailedPropertyVetoException