Package jmri.implementation
Class MeterUpdateTask
- java.lang.Object
-
- jmri.implementation.MeterUpdateTask
-
public abstract class MeterUpdateTask extends java.lang.Object
Handles updates of meters. Several meters may share the update task.
-
-
Constructor Summary
Constructors Constructor Description MeterUpdateTask()
MeterUpdateTask(int interval)
MeterUpdateTask(int initialInterval, int sleepInterval)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addMeter(Meter m)
protected void
disable()
void
disable(Meter m)
void
dispose(Meter m)
Remove references to and from this object, so that it can eventually be garbage-collected.void
enable()
void
enable(Meter m)
void
initTimer()
void
removeMeter(Meter m)
abstract void
requestUpdateFromLayout()
-
-
-
Constructor Detail
-
MeterUpdateTask
public MeterUpdateTask()
-
MeterUpdateTask
public MeterUpdateTask(int interval)
-
MeterUpdateTask
public MeterUpdateTask(int initialInterval, int sleepInterval)
-
-
Method Detail
-
removeMeter
public void removeMeter(Meter m)
-
enable
public void enable()
-
disable
protected void disable()
-
initTimer
public void initTimer()
-
requestUpdateFromLayout
public abstract void requestUpdateFromLayout()
-
-