]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.datatypes/src/org/simantics/datatypes/literal/RGB.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.datatypes / src / org / simantics / datatypes / literal / RGB.java
index b7b723356c136db449f3cbe1b69ceba46ec6c004..4e363c621c4b178309ba528e9d88c6c0acc7943c 100644 (file)
@@ -1,69 +1,69 @@
-package org.simantics.datatypes.literal;\r
-\r
-import org.simantics.common.color.Color;\r
-import org.simantics.common.utils.CommonUtils;\r
-import org.simantics.databoard.Bindings;\r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.databoard.util.Bean;\r
-\r
-\r
-public class RGB {\r
-\r
-       public static class Integer extends Bean implements Color {\r
-       \r
-        private static final long serialVersionUID = -8574259779076550543L;\r
-\r
-        public static final Binding BINDING = Bindings.getBindingUnchecked(Integer.class);\r
-               \r
-               public int red;\r
-               public int green;\r
-               public int blue;\r
-               \r
-               public Integer(int r, int g, int b) {\r
-                       super(BINDING);\r
-                       this.red = r; this.green = g; this.blue = b;\r
-               }\r
-               \r
-               @Override\r
-               public String toString() {\r
-                       return "RGB.Integer[r=" + red + " ,g=" + green + " ,b=" + blue + "]";\r
-               }\r
-\r
-               @Override\r
-               public double getR() {\r
-                       return CommonUtils.convertColor256ToDouble(red);\r
-               }\r
-\r
-               @Override\r
-               public double getG() {\r
-                       return CommonUtils.convertColor256ToDouble(green);\r
-               }\r
-\r
-               @Override\r
-               public double getB() {\r
-                       return CommonUtils.convertColor256ToDouble(blue);\r
-               }\r
-\r
-               @Override\r
-               public double getA() {\r
-                       return 0;\r
-               }\r
-\r
-               @Override\r
-               public double getH() {\r
-                       throw new UnsupportedOperationException();\r
-               }\r
-\r
-               @Override\r
-               public double getS() {\r
-                       throw new UnsupportedOperationException();\r
-               }\r
-\r
-               @Override\r
-               public double getV() {\r
-                       throw new UnsupportedOperationException();\r
-               }\r
-               \r
-       }\r
-       \r
-}\r
+package org.simantics.datatypes.literal;
+
+import org.simantics.common.color.Color;
+import org.simantics.common.utils.CommonUtils;
+import org.simantics.databoard.Bindings;
+import org.simantics.databoard.binding.Binding;
+import org.simantics.databoard.util.Bean;
+
+
+public class RGB {
+
+       public static class Integer extends Bean implements Color {
+       
+        private static final long serialVersionUID = -8574259779076550543L;
+
+        public static final Binding BINDING = Bindings.getBindingUnchecked(Integer.class);
+               
+               public int red;
+               public int green;
+               public int blue;
+               
+               public Integer(int r, int g, int b) {
+                       super(BINDING);
+                       this.red = r; this.green = g; this.blue = b;
+               }
+               
+               @Override
+               public String toString() {
+                       return "RGB.Integer[r=" + red + " ,g=" + green + " ,b=" + blue + "]";
+               }
+
+               @Override
+               public double getR() {
+                       return CommonUtils.convertColor256ToDouble(red);
+               }
+
+               @Override
+               public double getG() {
+                       return CommonUtils.convertColor256ToDouble(green);
+               }
+
+               @Override
+               public double getB() {
+                       return CommonUtils.convertColor256ToDouble(blue);
+               }
+
+               @Override
+               public double getA() {
+                       return 0;
+               }
+
+               @Override
+               public double getH() {
+                       throw new UnsupportedOperationException();
+               }
+
+               @Override
+               public double getS() {
+                       throw new UnsupportedOperationException();
+               }
+
+               @Override
+               public double getV() {
+                       throw new UnsupportedOperationException();
+               }
+               
+       }
+       
+}