unregistering visualizer skin

This commit is contained in:
Fredrik Osterlind 2011-03-03 13:42:46 +01:00
parent 8fb744edb1
commit 85a4265f8c

View File

@ -144,11 +144,16 @@ public class UDGM extends AbstractRadioMedium {
}
dgrm.requestEdgeAnalysis();
/* Register visualizer skin.
* TODO Should be unregistered when radio medium is removed */
/* Register visualizer skin */
Visualizer.registerVisualizerSkin(UDGMVisualizerSkin.class);
}
public void removed() {
super.removed();
Visualizer.unregisterVisualizerSkin(UDGMVisualizerSkin.class);
}
public void setTxRange(double r) {
TRANSMITTING_RANGE = r;
dgrm.requestEdgeAnalysis();