Mercurial > hg > jslab
view src/samer/tools/TaskTrigger.java.not @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
children |
line wrap: on
line source
/* * TaskTrigger.java * * Copyright (c) 2000, Samer Abdallah, King's College London. * All rights reserved. * * This software is provided AS IS and WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. */ package samer.tools; import samer.core.*; import samer.core.util.*; import samer.core.util.swing.Meter; import samer.core.types.*; import java.util.*; import java.awt.*; { Task task; Viewable vbl; SignalTrace(DoubleModel sig) { } public void detach() { task.dispose(); deleteObserver(this); } public void update(Observable obs, Object arg) { if (arg==Viewable.DISPOSING) { detach(); getParent().remove(this); } else if (vbl==obs) run(); else super.update(obs,arg); } }