]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/src/org/simantics/ui/colors/RGBColor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / colors / RGBColor.java
index ea258b28dc9e1e0e93225edf2410775ee370b9bf..8433a43006785d4c2d27f238ca9cc753e9b132ab 100644 (file)
@@ -1,61 +1,61 @@
-package org.simantics.ui.colors;\r
-\r
-import org.simantics.common.color.Color;\r
-import org.simantics.databoard.Bindings;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-public class RGBColor implements Color {\r
-       \r
-       double r,g,b;\r
-\r
-       public RGBColor(double r, double g, double b) {\r
-               this.r = r; this.g = g; this.b=b;\r
-       }\r
-       \r
-       public RGBColor(ReadGraph graph, Resource resource) throws DatabaseException {\r
-               double[] array = graph.getValue(resource, Bindings.DOUBLE_ARRAY);\r
-               assert(array.length == 3);\r
-               r = array[0];\r
-               g = array[1];\r
-               b = array[2];\r
-       }\r
-\r
-       @Override\r
-       public double getR() {\r
-               return r;\r
-       }\r
-\r
-       @Override\r
-       public double getG() {\r
-               return g;\r
-       }\r
-\r
-       @Override\r
-       public double getB() {\r
-               return b;\r
-       }\r
-\r
-       @Override\r
-       public double getA() {\r
-               throw new UnsupportedOperationException();\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
+package org.simantics.ui.colors;
+
+import org.simantics.common.color.Color;
+import org.simantics.databoard.Bindings;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+
+public class RGBColor implements Color {
+       
+       double r,g,b;
+
+       public RGBColor(double r, double g, double b) {
+               this.r = r; this.g = g; this.b=b;
+       }
+       
+       public RGBColor(ReadGraph graph, Resource resource) throws DatabaseException {
+               double[] array = graph.getValue(resource, Bindings.DOUBLE_ARRAY);
+               assert(array.length == 3);
+               r = array[0];
+               g = array[1];
+               b = array[2];
+       }
+
+       @Override
+       public double getR() {
+               return r;
+       }
+
+       @Override
+       public double getG() {
+               return g;
+       }
+
+       @Override
+       public double getB() {
+               return b;
+       }
+
+       @Override
+       public double getA() {
+               throw new UnsupportedOperationException();
+       }
+
+       @Override
+       public double getH() {
+               throw new UnsupportedOperationException();
+       }
+
+       @Override
+       public double getS() {
+               throw new UnsupportedOperationException();
+       }
+
+       @Override
+       public double getV() {
+               throw new UnsupportedOperationException();
+       }
+       
+}
+