]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/Trend2DNode.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / g2d / nodes / Trend2DNode.java
index a2c2e5de02ab9766dc17d04da1a82a953f4065bd..b793df6d058de793f504f4a82eb9c051c4510916 100644 (file)
@@ -1,14 +1,14 @@
-/*******************************************************************************\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
+/*******************************************************************************
+ * 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.scenegraph.g2d.nodes;
 
 import java.awt.BasicStroke;
@@ -17,7 +17,7 @@ import java.awt.Font;
 import java.awt.FontMetrics;
 import java.awt.Graphics2D;
 import java.awt.RenderingHints;
-import java.awt.geom.AffineTransform;\r
+import java.awt.geom.AffineTransform;
 import java.awt.geom.GeneralPath;
 import java.awt.geom.Rectangle2D;
 import java.io.Serializable;
@@ -111,11 +111,11 @@ public class Trend2DNode extends G2DNode {
        public void render(Graphics2D g2d) {
        if(points == null || bounds == null) {
                return;
-       }\r
-       AffineTransform ot = g2d.getTransform();\r
+       }
+       AffineTransform ot = g2d.getTransform();
        
        g2d.translate(x, y);
-       @SuppressWarnings("unused")\r
+       @SuppressWarnings("unused")
         int pointsDrawn = 0;
        
        double max_y = Double.MIN_VALUE; // for scaling
@@ -201,8 +201,8 @@ public class Trend2DNode extends G2DNode {
        // Print max time
        NumberFormat tformat = new DecimalFormat("#.0");
        String time = tformat.format(max_x);
-       g2d.drawString(time, (float)(bounds.getMaxX()-fm.getStringBounds(time, g2d).getWidth()/2), (float)(bounds.getMaxY()+fm.getStringBounds(time, g2d).getHeight()));\r
-       \r
+       g2d.drawString(time, (float)(bounds.getMaxX()-fm.getStringBounds(time, g2d).getWidth()/2), (float)(bounds.getMaxY()+fm.getStringBounds(time, g2d).getHeight()));
+       
        g2d.setTransform(ot);
        }