Commit b084c6d5 authored by Clemens Krug's avatar Clemens Krug
Browse files

Fixed DRAS Geofencing

~ Aggregated view for geofence is now displayed again
~ When a NodeView is closed via the close button, the corresponding node in the main view is now deselected, too. This functionality was broken after the latest updates.
parent 73f2042f
...@@ -271,6 +271,17 @@ public class VisualizationTopologyView extends JFrame ...@@ -271,6 +271,17 @@ public class VisualizationTopologyView extends JFrame
* obstacle); worldPanel.add(obsVis); } } * obstacle); worldPanel.add(obsVis); } }
*/ */
/**
* Sets a node to clicked or unclicked state
* @param id The node which should be affected
* @param clicked true if the node should be set as clicked, false otherwise
*/
public void toggleNodeClicked(INodeID id, boolean clicked)
{
worldPanel.nodeInformation.get(id).clicked = clicked;
}
@Override @Override
public void onLocationChanged(Host host, Location location) { public void onLocationChanged(Host host, Location location) {
// The NodeInformation objects are registered as listener. // The NodeInformation objects are registered as listener.
...@@ -332,9 +343,9 @@ public class VisualizationTopologyView extends JFrame ...@@ -332,9 +343,9 @@ public class VisualizationTopologyView extends JFrame
VisualizationInjector.scaleValue(location.getLongitude()), VisualizationInjector.scaleValue(location.getLongitude()),
VisualizationInjector.scaleValue(location.getLatitude())); VisualizationInjector.scaleValue(location.getLatitude()));
} }
} }
/** /**
* The world * The world
* *
...@@ -389,6 +400,7 @@ public class VisualizationTopologyView extends JFrame ...@@ -389,6 +400,7 @@ public class VisualizationTopologyView extends JFrame
}); });
} }
public void addTopologyComponent(TopologyComponent comp) { public void addTopologyComponent(TopologyComponent comp) {
if (!nodeInformation.containsKey(comp.getHost().getId())) { if (!nodeInformation.containsKey(comp.getHost().getId())) {
NodeInformation tVis = new NodeInformation(comp); NodeInformation tVis = new NodeInformation(comp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment