|
@@ -6,12 +6,12 @@ package de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration;
|
|
|
* @author Andreas T. Meyer-Berg
|
|
|
*/
|
|
|
public class VisualizationConfiguration {
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Whether connections should be shown
|
|
|
*/
|
|
|
private boolean showConnections;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Whether links should be shown
|
|
|
*/
|
|
@@ -20,27 +20,33 @@ public class VisualizationConfiguration {
|
|
|
* Whether link toolTips should be shown
|
|
|
*/
|
|
|
private boolean showLinkToolTips;
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Whether the link names should be presented on the left hand side of the
|
|
|
+ * visualization panel
|
|
|
+ */
|
|
|
+ private boolean showLinkNameList;
|
|
|
+
|
|
|
/**
|
|
|
* Whether SmartDevices should be shown
|
|
|
*/
|
|
|
private boolean showSmartDevices;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Whether SmartDevice names should be shown
|
|
|
*/
|
|
|
private boolean showSmartDeviceNames;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Whether terminated connections should be shown
|
|
|
*/
|
|
|
private boolean showTerminatedConnections;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Radius (including the middlePoinnt) of a smartDevice
|
|
|
*/
|
|
|
private int deviceVisualizationRadius;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Radius of the link. (deviceRadius+linkRadius)
|
|
|
*/
|
|
@@ -57,6 +63,7 @@ public class VisualizationConfiguration {
|
|
|
setShowTerminatedConnections(false);
|
|
|
setDeviceVisualizationRadius(17);
|
|
|
setShowLinkToolTips(true);
|
|
|
+ setShowLinkNameList(true);
|
|
|
setLinkRadius(6);
|
|
|
}
|
|
|
|
|
@@ -68,7 +75,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showConnections the showConnections to set
|
|
|
+ * @param showConnections
|
|
|
+ * the showConnections to set
|
|
|
*/
|
|
|
public void setShowConnections(boolean showConnections) {
|
|
|
this.showConnections = showConnections;
|
|
@@ -82,7 +90,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showLinks the showLinks to set
|
|
|
+ * @param showLinks
|
|
|
+ * the showLinks to set
|
|
|
*/
|
|
|
public void setShowLinks(boolean showLinks) {
|
|
|
this.showLinks = showLinks;
|
|
@@ -96,7 +105,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showSmartDevices the showSmartDevices to set
|
|
|
+ * @param showSmartDevices
|
|
|
+ * the showSmartDevices to set
|
|
|
*/
|
|
|
public void setShowSmartDevices(boolean showSmartDevices) {
|
|
|
this.showSmartDevices = showSmartDevices;
|
|
@@ -110,7 +120,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showSmartDeviceNames the showSmartDeviceNames to set
|
|
|
+ * @param showSmartDeviceNames
|
|
|
+ * the showSmartDeviceNames to set
|
|
|
*/
|
|
|
public void setShowSmartDeviceNames(boolean showSmartDeviceNames) {
|
|
|
this.showSmartDeviceNames = showSmartDeviceNames;
|
|
@@ -124,7 +135,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showTerminatedConnections the showTerminatedConnections to set
|
|
|
+ * @param showTerminatedConnections
|
|
|
+ * the showTerminatedConnections to set
|
|
|
*/
|
|
|
public void setShowTerminatedConnections(boolean showTerminatedConnections) {
|
|
|
this.showTerminatedConnections = showTerminatedConnections;
|
|
@@ -138,7 +150,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param deviceVisualizationRadius the deviceVisualizationRadius to set
|
|
|
+ * @param deviceVisualizationRadius
|
|
|
+ * the deviceVisualizationRadius to set
|
|
|
*/
|
|
|
public void setDeviceVisualizationRadius(int deviceVisualizationRadius) {
|
|
|
this.deviceVisualizationRadius = deviceVisualizationRadius;
|
|
@@ -152,7 +165,8 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param linkRadius the linkRadius to set
|
|
|
+ * @param linkRadius
|
|
|
+ * the linkRadius to set
|
|
|
*/
|
|
|
public void setLinkRadius(int linkRadius) {
|
|
|
this.linkRadius = linkRadius;
|
|
@@ -166,10 +180,25 @@ public class VisualizationConfiguration {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param showLinkToolTips the showLinkToolTips to set
|
|
|
+ * @param showLinkToolTips
|
|
|
+ * the showLinkToolTips to set
|
|
|
*/
|
|
|
public void setShowLinkToolTips(boolean showLinkToolTips) {
|
|
|
this.showLinkToolTips = showLinkToolTips;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return the showLinkNameList
|
|
|
+ */
|
|
|
+ public boolean isShowLinkNameList() {
|
|
|
+ return showLinkNameList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param showLinkNameList the showLinkNameList to set
|
|
|
+ */
|
|
|
+ public void setShowLinkNameList(boolean showLinkNameList) {
|
|
|
+ this.showLinkNameList = showLinkNameList;
|
|
|
+ }
|
|
|
+
|
|
|
}
|