|
@@ -165,7 +165,7 @@ public class VisualisationPanel extends JPanel implements Observer {
|
|
|
|
|
|
* Angle per Link in "linkSlice degrees"
|
|
|
*/
|
|
|
- int linkSlice = (int) Math.round(360.0 / numberOfLinks);
|
|
|
+ int linkSlice = Math.min((int) Math.round(360.0 / numberOfLinks),90);
|
|
|
|
|
|
* Map of links to Colors and position of the Color
|
|
|
*/
|
|
@@ -240,7 +240,7 @@ public class VisualisationPanel extends JPanel implements Observer {
|
|
|
* Number and color of the current link
|
|
|
*/
|
|
|
Pair<Integer, Color> linkPos = linkColors.get(l);
|
|
|
- if(l==null)continue;
|
|
|
+ if(linkPos==null)continue;
|
|
|
g.setColor(linkPos.getRight());
|
|
|
g.fillArc(x - config.getDeviceVisualizationRadius() - linkDim, y - config.getDeviceVisualizationRadius() - linkDim,
|
|
|
2 * config.getDeviceVisualizationRadius() - 1 + 2 * linkDim, 2 * config.getDeviceVisualizationRadius() - 1 + 2*linkDim,
|