]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/gfx/clipboard/headers/BitmapFileHeader.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / gfx / clipboard / headers / BitmapFileHeader.java
index 7e38b479d39cecb575f2ceb588d77a444aab3b63..5fe9a7c8fc745d6cbaf628696accaaa9f3104da5 100644 (file)
@@ -1,61 +1,61 @@
-/*******************************************************************************\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.utils.ui.gfx.clipboard.headers;\r
-\r
-import java.nio.ByteBuffer;\r
-import java.nio.ByteOrder;\r
-\r
-\r
-\r
-/**\r
- * WIN32 API BITMAPFILEHEADER\r
- * \r
- * @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_62uq.asp\r
- * @author Marko Luukkainen\r
- *\r
- */\r
-public class BitmapFileHeader {\r
-    public short bfType;\r
-    public int bfSize;\r
-    public short bfReserved1;\r
-    public short bfReserved2;\r
-    public int bfOffBits;\r
-    public static final int sizeof = 14;\r
-    \r
-    /**\r
-     * Creates BITMAPFILEHEADER for bitmap that has\r
-     * BITMAPINFO.bmiColors field NULL / undefined \r
-     *\r
-     */\r
-    public BitmapFileHeader() {\r
-        bfType = 'B';\r
-        bfType <<= 8;\r
-        bfType |= (0xff & 'M');\r
-        bfSize = 0;\r
-        bfReserved1 = 0;\r
-        bfReserved2 = 0;\r
-        bfOffBits = sizeof + BitmapInfoHeader.sizeof;\r
-    \r
-    }\r
-    \r
-    public byte[] getBytes() {\r
-        byte [] array = new byte[sizeof];\r
-        ByteBuffer buffer = ByteBuffer.wrap(array);\r
-        buffer.order(ByteOrder.LITTLE_ENDIAN);\r
-        buffer.putShort(bfType);\r
-        buffer.putInt(bfSize);\r
-        buffer.putShort(bfReserved1);\r
-        buffer.putShort(bfReserved2);\r
-        buffer.putInt(bfOffBits);\r
-        return array;\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.utils.ui.gfx.clipboard.headers;
+
+import java.nio.ByteBuffer;
+import java.nio.ByteOrder;
+
+
+
+/**
+ * WIN32 API BITMAPFILEHEADER
+ * 
+ * @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_62uq.asp
+ * @author Marko Luukkainen
+ *
+ */
+public class BitmapFileHeader {
+    public short bfType;
+    public int bfSize;
+    public short bfReserved1;
+    public short bfReserved2;
+    public int bfOffBits;
+    public static final int sizeof = 14;
+    
+    /**
+     * Creates BITMAPFILEHEADER for bitmap that has
+     * BITMAPINFO.bmiColors field NULL / undefined 
+     *
+     */
+    public BitmapFileHeader() {
+        bfType = 'B';
+        bfType <<= 8;
+        bfType |= (0xff & 'M');
+        bfSize = 0;
+        bfReserved1 = 0;
+        bfReserved2 = 0;
+        bfOffBits = sizeof + BitmapInfoHeader.sizeof;
+    
+    }
+    
+    public byte[] getBytes() {
+        byte [] array = new byte[sizeof];
+        ByteBuffer buffer = ByteBuffer.wrap(array);
+        buffer.order(ByteOrder.LITTLE_ENDIAN);
+        buffer.putShort(bfType);
+        buffer.putInt(bfSize);
+        buffer.putShort(bfReserved1);
+        buffer.putShort(bfReserved2);
+        buffer.putInt(bfOffBits);
+        return array;
+    }
+}