]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/AdditionalColorImpl.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / impl / AdditionalColorImpl.java
index 4e147f1c644a5339cfa5b64f240321cd74171aec..397a167ef02c4f8ec81de000c489a35e12c45e0c 100644 (file)
@@ -1,75 +1,75 @@
-/*******************************************************************************\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.element.handler.impl;\r
-\r
-import java.awt.Color;\r
-\r
-import org.simantics.g2d.diagram.IDiagram;\r
-import org.simantics.g2d.element.ElementHints;\r
-import org.simantics.g2d.element.IElement;\r
-import org.simantics.g2d.element.handler.AdditionalColor;\r
-import org.simantics.g2d.element.handler.LifeCycle;\r
-\r
-/**\r
- * \r
- * @See {@link Color}\r
- * @author Toni Kalajainen\r
- */\r
-public class AdditionalColorImpl implements AdditionalColor, LifeCycle {\r
-       \r
-       /**\r
-        * \r
-        */\r
-       private static final long serialVersionUID = -5597731950979011697L;\r
-       public static final AdditionalColorImpl BLACK = new AdditionalColorImpl(java.awt.Color.BLACK);\r
-       public static final AdditionalColorImpl WHITE = new AdditionalColorImpl(java.awt.Color.WHITE);\r
-       public static final AdditionalColorImpl RED = new AdditionalColorImpl(java.awt.Color.RED);\r
-       public static final AdditionalColorImpl BLUE = new AdditionalColorImpl(java.awt.Color.BLUE);\r
-       public static final AdditionalColorImpl GREEN = new AdditionalColorImpl(java.awt.Color.GREEN);\r
-       public static final AdditionalColorImpl GRAY = new AdditionalColorImpl(java.awt.Color.GRAY);\r
-               \r
-       public synchronized static AdditionalColorImpl handlerOf(java.awt.Color c)\r
-       {\r
-               return new AdditionalColorImpl(c);\r
-       }\r
-       \r
-       java.awt.Color defaultColor = java.awt.Color.BLACK;\r
-       \r
-       public AdditionalColorImpl() {}\r
-       public AdditionalColorImpl(java.awt.Color defaultColor) {\r
-               this.defaultColor = defaultColor;\r
-       }\r
-       \r
-       @Override\r
-       public java.awt.Color getAdditionalColor(IElement e) {          \r
-               return e.getHint(ElementHints.KEY_ADDITIONAL_COLOR);\r
-       }\r
-\r
-       @Override\r
-       public void setAdditionalColor(IElement e, java.awt.Color c) {\r
-               e.setHint(ElementHints.KEY_ADDITIONAL_COLOR, c);\r
-       }\r
-       \r
-       @Override\r
-       public void onElementActivated(IDiagram d, IElement e) {\r
-       }\r
-       @Override\r
-       public void onElementCreated(IElement e) {\r
-               e.setHint(ElementHints.KEY_ADDITIONAL_COLOR, defaultColor);\r
-       }\r
-       @Override\r
-       public void onElementDeactivated(IDiagram d, IElement e) {\r
-       }\r
-       @Override\r
-       public void onElementDestroyed(IElement e) {\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.element.handler.impl;
+
+import java.awt.Color;
+
+import org.simantics.g2d.diagram.IDiagram;
+import org.simantics.g2d.element.ElementHints;
+import org.simantics.g2d.element.IElement;
+import org.simantics.g2d.element.handler.AdditionalColor;
+import org.simantics.g2d.element.handler.LifeCycle;
+
+/**
+ * 
+ * @See {@link Color}
+ * @author Toni Kalajainen
+ */
+public class AdditionalColorImpl implements AdditionalColor, LifeCycle {
+       
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -5597731950979011697L;
+       public static final AdditionalColorImpl BLACK = new AdditionalColorImpl(java.awt.Color.BLACK);
+       public static final AdditionalColorImpl WHITE = new AdditionalColorImpl(java.awt.Color.WHITE);
+       public static final AdditionalColorImpl RED = new AdditionalColorImpl(java.awt.Color.RED);
+       public static final AdditionalColorImpl BLUE = new AdditionalColorImpl(java.awt.Color.BLUE);
+       public static final AdditionalColorImpl GREEN = new AdditionalColorImpl(java.awt.Color.GREEN);
+       public static final AdditionalColorImpl GRAY = new AdditionalColorImpl(java.awt.Color.GRAY);
+               
+       public synchronized static AdditionalColorImpl handlerOf(java.awt.Color c)
+       {
+               return new AdditionalColorImpl(c);
+       }
+       
+       java.awt.Color defaultColor = java.awt.Color.BLACK;
+       
+       public AdditionalColorImpl() {}
+       public AdditionalColorImpl(java.awt.Color defaultColor) {
+               this.defaultColor = defaultColor;
+       }
+       
+       @Override
+       public java.awt.Color getAdditionalColor(IElement e) {          
+               return e.getHint(ElementHints.KEY_ADDITIONAL_COLOR);
+       }
+
+       @Override
+       public void setAdditionalColor(IElement e, java.awt.Color c) {
+               e.setHint(ElementHints.KEY_ADDITIONAL_COLOR, c);
+       }
+       
+       @Override
+       public void onElementActivated(IDiagram d, IElement e) {
+       }
+       @Override
+       public void onElementCreated(IElement e) {
+               e.setHint(ElementHints.KEY_ADDITIONAL_COLOR, defaultColor);
+       }
+       @Override
+       public void onElementDeactivated(IDiagram d, IElement e) {
+       }
+       @Override
+       public void onElementDestroyed(IElement e) {
+       }
+}