*
* move node to a specified location
*
**/
public synchronized void setTimeLineNode(Time start, Time end) throws DetailedPropertyVetoException {
Time oldStartTime = fModel.getStartTime();
Time oldEndTime = fModel.getEndTime();
try {
fModel.setValidTimeLineNode(start, end);
if (fTimeLine != null) {
Time displayEdge = fTimeLine.getDisplayStart();
if ((fModel.getStartTime().getValue() < displayEdge.getValue() &&
oldStartTime.getValue() >= displayEdge.getValue())) {
fChangeSupport.fireVetoableChange(TimeLineNode.HIT_LEFT_EDGE,
oldStartTime, fModel.getStartTime());
}
displayEdge = fTimeLine.getDisplayEnd();
if ((fModel.getEndTime().getValue() > displayEdge.getValue() &&
oldEndTime.getValue() <= displayEdge.getValue())) {
fChangeSupport.fireVetoableChange(TimeLineNode.HIT_RIGHT_EDGE, oldEndTime, fModel.getEndTime());
}
}