Mercurial > hg > jslab
view src/samer/tools/TaskTrigger.java.not @ 8:5e3cbbf173aa tip
Reorganise some more
author | samer |
---|---|
date | Fri, 05 Apr 2019 22:41:58 +0100 |
parents | bf79fb79ee13 |
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); } }