123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- package de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration;
- /**
- * Stores the configuration details of the visualization
- *
- * @author Andreas T. Meyer-Berg
- */
- public class VisualizationConfiguration {
- /**
- * Whether connections should be shown
- */
- private boolean showConnections;
- /**
- * Whether links should be shown
- */
- private boolean showLinks;
- /**
- * 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)
- */
- private int linkRadius;
-
- /**
- * True if debug information should be shown
- */
- private boolean debugModus = false;
- /**
- * Initialize the configuration
- */
- public VisualizationConfiguration() {
- setShowConnections(true);
- setShowLinks(true);
- setShowSmartDevices(true);
- setShowSmartDeviceNames(true);
- setShowTerminatedConnections(false);
- setDeviceVisualizationRadius(25);
- setShowLinkToolTips(true);
- setShowLinkNameList(true);
- setLinkRadius(10);
- }
- /**
- * @return the showConnections
- */
- public boolean isShowConnections() {
- return showConnections;
- }
- /**
- * @param showConnections
- * the showConnections to set
- */
- public void setShowConnections(boolean showConnections) {
- this.showConnections = showConnections;
- }
- /**
- * @return the showLinks
- */
- public boolean isShowLinks() {
- return showLinks;
- }
- /**
- * @param showLinks
- * the showLinks to set
- */
- public void setShowLinks(boolean showLinks) {
- this.showLinks = showLinks;
- }
- /**
- * @return the showSmartDevices
- */
- public boolean isShowSmartDevices() {
- return showSmartDevices;
- }
- /**
- * @param showSmartDevices
- * the showSmartDevices to set
- */
- public void setShowSmartDevices(boolean showSmartDevices) {
- this.showSmartDevices = showSmartDevices;
- }
- /**
- * @return the showSmartDeviceNames
- */
- public boolean isShowSmartDeviceNames() {
- return showSmartDeviceNames;
- }
- /**
- * @param showSmartDeviceNames
- * the showSmartDeviceNames to set
- */
- public void setShowSmartDeviceNames(boolean showSmartDeviceNames) {
- this.showSmartDeviceNames = showSmartDeviceNames;
- }
- /**
- * @return the showTerminatedConnections
- */
- public boolean isShowTerminatedConnections() {
- return showTerminatedConnections;
- }
- /**
- * @param showTerminatedConnections
- * the showTerminatedConnections to set
- */
- public void setShowTerminatedConnections(boolean showTerminatedConnections) {
- this.showTerminatedConnections = showTerminatedConnections;
- }
- /**
- * @return the deviceVisualizationRadius
- */
- public int getDeviceVisualizationRadius() {
- return deviceVisualizationRadius;
- }
- /**
- * @param deviceVisualizationRadius
- * the deviceVisualizationRadius to set
- */
- public void setDeviceVisualizationRadius(int deviceVisualizationRadius) {
- this.deviceVisualizationRadius = deviceVisualizationRadius;
- }
- /**
- * @return the linkRadius
- */
- public int getLinkRadius() {
- return linkRadius;
- }
- /**
- * @param linkRadius
- * the linkRadius to set
- */
- public void setLinkRadius(int linkRadius) {
- this.linkRadius = linkRadius;
- }
- /**
- * @return the showLinkToolTips
- */
- public boolean isShowLinkToolTips() {
- return showLinkToolTips;
- }
- /**
- * @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;
- }
- /**
- * @return the debugModus
- */
- public boolean isDebugModus() {
- return debugModus;
- }
- /**
- * @param debugModus the debugModus to set
- */
- public void setDebugModus(boolean debugModus) {
- this.debugModus = debugModus;
- }
- }
|