VisualizationConfiguration.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. package de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration;
  2. /**
  3. * Stores the configuration details of the visualization
  4. *
  5. * @author Andreas T. Meyer-Berg
  6. */
  7. public class VisualizationConfiguration {
  8. /**
  9. * Whether connections should be shown
  10. */
  11. private boolean showConnections;
  12. /**
  13. * Whether links should be shown
  14. */
  15. private boolean showLinks;
  16. /**
  17. * Whether link toolTips should be shown
  18. */
  19. private boolean showLinkToolTips;
  20. /**
  21. * Whether the link names should be presented on the left hand side of the
  22. * visualization panel
  23. */
  24. private boolean showLinkNameList;
  25. /**
  26. * Whether SmartDevices should be shown
  27. */
  28. private boolean showSmartDevices;
  29. /**
  30. * Whether SmartDevice names should be shown
  31. */
  32. private boolean showSmartDeviceNames;
  33. /**
  34. * Whether terminated connections should be shown
  35. */
  36. private boolean showTerminatedConnections;
  37. /**
  38. * Radius (including the middlePoinnt) of a smartDevice
  39. */
  40. private int deviceVisualizationRadius;
  41. /**
  42. * Radius of the link. (deviceRadius+linkRadius)
  43. */
  44. private int linkRadius;
  45. /**
  46. * True if debug information should be shown
  47. */
  48. private boolean debugModus = false;
  49. /**
  50. * Initialize the configuration
  51. */
  52. public VisualizationConfiguration() {
  53. setShowConnections(true);
  54. setShowLinks(true);
  55. setShowSmartDevices(true);
  56. setShowSmartDeviceNames(true);
  57. setShowTerminatedConnections(false);
  58. setDeviceVisualizationRadius(25);
  59. setShowLinkToolTips(true);
  60. setShowLinkNameList(true);
  61. setLinkRadius(10);
  62. }
  63. /**
  64. * @return the showConnections
  65. */
  66. public boolean isShowConnections() {
  67. return showConnections;
  68. }
  69. /**
  70. * @param showConnections
  71. * the showConnections to set
  72. */
  73. public void setShowConnections(boolean showConnections) {
  74. this.showConnections = showConnections;
  75. }
  76. /**
  77. * @return the showLinks
  78. */
  79. public boolean isShowLinks() {
  80. return showLinks;
  81. }
  82. /**
  83. * @param showLinks
  84. * the showLinks to set
  85. */
  86. public void setShowLinks(boolean showLinks) {
  87. this.showLinks = showLinks;
  88. }
  89. /**
  90. * @return the showSmartDevices
  91. */
  92. public boolean isShowSmartDevices() {
  93. return showSmartDevices;
  94. }
  95. /**
  96. * @param showSmartDevices
  97. * the showSmartDevices to set
  98. */
  99. public void setShowSmartDevices(boolean showSmartDevices) {
  100. this.showSmartDevices = showSmartDevices;
  101. }
  102. /**
  103. * @return the showSmartDeviceNames
  104. */
  105. public boolean isShowSmartDeviceNames() {
  106. return showSmartDeviceNames;
  107. }
  108. /**
  109. * @param showSmartDeviceNames
  110. * the showSmartDeviceNames to set
  111. */
  112. public void setShowSmartDeviceNames(boolean showSmartDeviceNames) {
  113. this.showSmartDeviceNames = showSmartDeviceNames;
  114. }
  115. /**
  116. * @return the showTerminatedConnections
  117. */
  118. public boolean isShowTerminatedConnections() {
  119. return showTerminatedConnections;
  120. }
  121. /**
  122. * @param showTerminatedConnections
  123. * the showTerminatedConnections to set
  124. */
  125. public void setShowTerminatedConnections(boolean showTerminatedConnections) {
  126. this.showTerminatedConnections = showTerminatedConnections;
  127. }
  128. /**
  129. * @return the deviceVisualizationRadius
  130. */
  131. public int getDeviceVisualizationRadius() {
  132. return deviceVisualizationRadius;
  133. }
  134. /**
  135. * @param deviceVisualizationRadius
  136. * the deviceVisualizationRadius to set
  137. */
  138. public void setDeviceVisualizationRadius(int deviceVisualizationRadius) {
  139. this.deviceVisualizationRadius = deviceVisualizationRadius;
  140. }
  141. /**
  142. * @return the linkRadius
  143. */
  144. public int getLinkRadius() {
  145. return linkRadius;
  146. }
  147. /**
  148. * @param linkRadius
  149. * the linkRadius to set
  150. */
  151. public void setLinkRadius(int linkRadius) {
  152. this.linkRadius = linkRadius;
  153. }
  154. /**
  155. * @return the showLinkToolTips
  156. */
  157. public boolean isShowLinkToolTips() {
  158. return showLinkToolTips;
  159. }
  160. /**
  161. * @param showLinkToolTips
  162. * the showLinkToolTips to set
  163. */
  164. public void setShowLinkToolTips(boolean showLinkToolTips) {
  165. this.showLinkToolTips = showLinkToolTips;
  166. }
  167. /**
  168. * @return the showLinkNameList
  169. */
  170. public boolean isShowLinkNameList() {
  171. return showLinkNameList;
  172. }
  173. /**
  174. * @param showLinkNameList the showLinkNameList to set
  175. */
  176. public void setShowLinkNameList(boolean showLinkNameList) {
  177. this.showLinkNameList = showLinkNameList;
  178. }
  179. /**
  180. * @return the debugModus
  181. */
  182. public boolean isDebugModus() {
  183. return debugModus;
  184. }
  185. /**
  186. * @param debugModus the debugModus to set
  187. */
  188. public void setDebugModus(boolean debugModus) {
  189. this.debugModus = debugModus;
  190. }
  191. }