]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/SimpleFont.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.document.server.io / src / org / simantics / document / server / io / SimpleFont.java
index b0539516c7062f94e789909579d0ef541d06614f..532d1dd9d288fa88361ac021d169e0efcc6050f9 100644 (file)
@@ -1,64 +1,64 @@
-package org.simantics.document.server.io;\r
-\r
-public class SimpleFont implements IFont {\r
-\r
-       private final String family;\r
-       private final String style;\r
-       private final int height;\r
-\r
-       public SimpleFont(String family, String style, int height) {\r
-               this.family = family;\r
-               this.style = style;\r
-               this.height = height;\r
-       }\r
-\r
-       @Override\r
-       public int hashCode() {\r
-               final int prime = 31;\r
-               int result = 1;\r
-               result = prime * result + ((family == null) ? 0 : family.hashCode());\r
-               result = prime * result + height;\r
-               result = prime * result + ((style == null) ? 0 : style.hashCode());\r
-               return result;\r
-       }\r
-\r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               if (this == obj)\r
-                       return true;\r
-               if (obj == null)\r
-                       return false;\r
-               if (getClass() != obj.getClass())\r
-                       return false;\r
-               SimpleFont other = (SimpleFont) obj;\r
-               if (family == null) {\r
-                       if (other.family != null)\r
-                               return false;\r
-               } else if (!family.equals(other.family))\r
-                       return false;\r
-               if (height != other.height)\r
-                       return false;\r
-               if (style == null) {\r
-                       if (other.style != null)\r
-                               return false;\r
-               } else if (!style.equals(other.style))\r
-                       return false;\r
-               return true;\r
-       }\r
-\r
-       @Override\r
-       public String getFamily() {\r
-               return family;\r
-       }\r
-\r
-       @Override\r
-       public String getStyle() {\r
-               return style;\r
-       }\r
-\r
-       @Override\r
-       public int getHeight() {\r
-               return height;\r
-       }\r
-       \r
-}\r
+package org.simantics.document.server.io;
+
+public class SimpleFont implements IFont {
+
+       private final String family;
+       private final String style;
+       private final int height;
+
+       public SimpleFont(String family, String style, int height) {
+               this.family = family;
+               this.style = style;
+               this.height = height;
+       }
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int result = 1;
+               result = prime * result + ((family == null) ? 0 : family.hashCode());
+               result = prime * result + height;
+               result = prime * result + ((style == null) ? 0 : style.hashCode());
+               return result;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null)
+                       return false;
+               if (getClass() != obj.getClass())
+                       return false;
+               SimpleFont other = (SimpleFont) obj;
+               if (family == null) {
+                       if (other.family != null)
+                               return false;
+               } else if (!family.equals(other.family))
+                       return false;
+               if (height != other.height)
+                       return false;
+               if (style == null) {
+                       if (other.style != null)
+                               return false;
+               } else if (!style.equals(other.style))
+                       return false;
+               return true;
+       }
+
+       @Override
+       public String getFamily() {
+               return family;
+       }
+
+       @Override
+       public String getStyle() {
+               return style;
+       }
+
+       @Override
+       public int getHeight() {
+               return height;
+       }
+       
+}