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(); dgrm.requestEdgeAnalysis();
/* Register visualizer skin. /* Register visualizer skin */
* TODO Should be unregistered when radio medium is removed */
Visualizer.registerVisualizerSkin(UDGMVisualizerSkin.class); Visualizer.registerVisualizerSkin(UDGMVisualizerSkin.class);
} }
public void removed() {
super.removed();
Visualizer.unregisterVisualizerSkin(UDGMVisualizerSkin.class);
}
public void setTxRange(double r) { public void setTxRange(double r) {
TRANSMITTING_RANGE = r; TRANSMITTING_RANGE = r;
dgrm.requestEdgeAnalysis(); dgrm.requestEdgeAnalysis();