]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/variable/DynamicBoolean.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / utils / variable / DynamicBoolean.java
index 9e79dc4c4f80460b47d2f36516da172cf569d36f..8b43bb0a10a2ce31a2cbff216ff9ca680c72014d 100644 (file)
@@ -1,60 +1,60 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.scenegraph.utils.variable;\r
-\r
-/**\r
- * A container for a single dynamic-enabled boolean variable of a scene graph\r
- * node. Dynamic-enabled means a variable that potentially has two values: one\r
- * static (~ default) and one dynamic. If the dynamic part has a non-null value\r
- * it should always be used instead of the static value. Use\r
- * {@link #getActiveValue()} to get the current variable value to follow this\r
- * policy in your client code.\r
- * \r
- * <p>\r
- * Variables generally determine the way a node gets rendered.\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public class DynamicBoolean extends DynamicVariable<Boolean> {\r
-\r
-    private boolean value;\r
-\r
-    public static DynamicBoolean make(boolean initialValue) {\r
-        return new DynamicBoolean(initialValue);\r
-    }\r
-\r
-    public DynamicBoolean(boolean initialValue) {\r
-        this.value = initialValue;\r
-    }\r
-\r
-    public boolean getValue() {\r
-        return value;\r
-    }\r
-\r
-    public boolean getActiveValue() {\r
-        return dynamicValue != null ? dynamicValue : value;\r
-    }\r
-\r
-    /**\r
-     * Sets the static value of the variable.\r
-     * \r
-     * @param value new static value\r
-     */\r
-    public void setValue(boolean value) {\r
-        this.value = value;\r
-    }\r
-\r
-    public boolean hasDynamicValue() {\r
-        return dynamicValue != null && getValue() != getActiveValue();\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.scenegraph.utils.variable;
+
+/**
+ * A container for a single dynamic-enabled boolean variable of a scene graph
+ * node. Dynamic-enabled means a variable that potentially has two values: one
+ * static (~ default) and one dynamic. If the dynamic part has a non-null value
+ * it should always be used instead of the static value. Use
+ * {@link #getActiveValue()} to get the current variable value to follow this
+ * policy in your client code.
+ * 
+ * <p>
+ * Variables generally determine the way a node gets rendered.
+ * 
+ * @author Tuukka Lehtonen
+ */
+public class DynamicBoolean extends DynamicVariable<Boolean> {
+
+    private boolean value;
+
+    public static DynamicBoolean make(boolean initialValue) {
+        return new DynamicBoolean(initialValue);
+    }
+
+    public DynamicBoolean(boolean initialValue) {
+        this.value = initialValue;
+    }
+
+    public boolean getValue() {
+        return value;
+    }
+
+    public boolean getActiveValue() {
+        return dynamicValue != null ? dynamicValue : value;
+    }
+
+    /**
+     * Sets the static value of the variable.
+     * 
+     * @param value new static value
+     */
+    public void setValue(boolean value) {
+        this.value = value;
+    }
+
+    public boolean hasDynamicValue() {
+        return dynamicValue != null && getValue() != getActiveValue();
+    }
+
+}