]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/multileveldiagram/TransitionFunction.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / multileveldiagram / TransitionFunction.java
index 84d89eab37fe69d62b0253e32572b0cb78a1cdff..f68aeac4cd20bb165325643923ba281d480c5fbf 100644 (file)
@@ -1,45 +1,45 @@
-/*******************************************************************************\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.g2d.multileveldiagram;\r
-\r
-import org.simantics.g2d.element.handler.impl.TransitionFunctionPainter;\r
-\r
-/**\r
- * Transition function \r
- * - Bijective function \r
- * \r
- * @See {@link TransitionFunctionPainter}\r
- * @author Toni Kalajainen\r
- */\r
-public interface TransitionFunction {\r
-       \r
-       public static final TransitionFunction LINEAR = \r
-               new TransitionFunction() {\r
-                       @Override\r
-                       public double f(double p) {\r
-                               return p;\r
-                       }};\r
-       public static final TransitionFunction SIGMOID = \r
-               new TransitionFunction() {\r
-                       @Override\r
-                       public double f(double p) {\r
-                               return 1 / (1+ Math.exp(6-p*12));\r
-                       }};\r
-       \r
-       /**\r
-        * Calculates transition value\r
-        * @param p 0..1\r
-        * @return 0..1\r
-        */\r
-       double f(double p);\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.g2d.multileveldiagram;
+
+import org.simantics.g2d.element.handler.impl.TransitionFunctionPainter;
+
+/**
+ * Transition function 
+ * - Bijective function 
+ * 
+ * @See {@link TransitionFunctionPainter}
+ * @author Toni Kalajainen
+ */
+public interface TransitionFunction {
+       
+       public static final TransitionFunction LINEAR = 
+               new TransitionFunction() {
+                       @Override
+                       public double f(double p) {
+                               return p;
+                       }};
+       public static final TransitionFunction SIGMOID = 
+               new TransitionFunction() {
+                       @Override
+                       public double f(double p) {
+                               return 1 / (1+ Math.exp(6-p*12));
+                       }};
+       
+       /**
+        * Calculates transition value
+        * @param p 0..1
+        * @return 0..1
+        */
+       double f(double p);
+
+}