tmf/lttng: Remove unneeded (non-Javadoc) comments
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / core / ExecutionOccurrence.java
index d63f62359cfebe1aae41b0130ba3b5068bc7c1b3..acadb480b3fe6c30e0b6177cd693ab57a4c3f59f 100755 (executable)
@@ -1,19 +1,18 @@
 /**********************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- * 
+ * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
  * 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: 
- * IBM - Initial API and implementation
- * Bernd Hufmann - Updated for TMF
+ *
+ * Contributors:
+ *     IBM - Initial API and implementation
+ *     Bernd Hufmann - Updated for TMF
  **********************************************************************/
+
 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core;
 
-import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
+import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IColor;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IGC;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IImage;
@@ -23,19 +22,20 @@ import org.eclipse.linuxtools.tmf.ui.views.uml2sd.preferences.SDViewPref;
 /**
  * ExecutionOccurrence is the UML2 execution occurrence graphical representation. It is a BasicExecutionOccurrence on
  * which you can customize fill and/or.
- * 
+ *
  * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.Lifeline Lifeline for more event occurence details
- * @version 1.0 
+ * @version 1.0
  * @author sveyrier
- * 
+ *
  */
 public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITimeRange {
 
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
+
     /**
-     * Set the red, green and blue value of the optional color to be used for filling the execution occurrence. 
+     * Set the red, green and blue value of the optional color to be used for filling the execution occurrence.
      */
     protected int[] fFillRGB;
     /**
@@ -51,7 +51,7 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
      */
     protected IImage fEllipsesImage;
     /**
-     *  The start time stamp. 
+     *  The start time stamp.
      */
     protected ITmfTimestamp fStartTime;
     /**
@@ -59,17 +59,14 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
      */
     protected ITmfTimestamp fEndTime;
     /**
-     * Flag to indicate whether time information is available or not. 
+     * Flag to indicate whether time information is available or not.
      */
     protected boolean fHasTimeInfo;
 
     // ------------------------------------------------------------------------
     // Methods
     // ------------------------------------------------------------------------
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.BasicExecutionOccurrence#setLifeline(org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.Lifeline)
-     */
+
     @Override
     public void setLifeline(Lifeline theLifeline) {
         super.setLifeline(theLifeline);
@@ -83,7 +80,7 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the red, green and blue value of the optional color to be used for filling the execution occurrence.
-     * 
+     *
      * @param red A value for red.
      * @param green A green value for green.
      * @param blue A value blue.
@@ -97,7 +94,7 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the red, green and blue value of the optional color to be used for drawing the execution occurrence
-     * 
+     *
      * @param red A value for red.
      * @param green A green value for green.
      * @param blue A value blue.
@@ -111,7 +108,7 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the corresponding image.
-     * 
+     *
      * @param image A image to set.
      */
     public void setImage(IImage image) {
@@ -120,7 +117,7 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the top ellipses image.
-     * 
+     *
      * @param image A image to set.
      */
     public void setTopEllipsesImage(IImage image) {
@@ -129,11 +126,12 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the time when the execution occurrence starts.
-     * 
+     *
      * @param time the time when the execution occurrence starts
+     * @since 2.0
      */
     public void setStartTime(ITmfTimestamp time) {
-        fStartTime = time.clone();
+        fStartTime = time;
         fHasTimeInfo = true;
         if (fLifeline != null) {
             fLifeline.setTimeInfo(true);
@@ -142,48 +140,39 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
 
     /**
      * Set the time when the execution occurrence ends.
-     * 
+     *
      * @param time the time when the execution occurrence ends
+     * @since 2.0
      */
     public void setEndTime(ITmfTimestamp time) {
-        fEndTime = time.clone();
+        fEndTime = time;
         fHasTimeInfo = true;
         if (fLifeline != null) {
             fLifeline.setTimeInfo(true);
         }
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.ITimeRange#getStartTime()
+    /**
+     * @since 2.0
      */
     @Override
     public ITmfTimestamp getStartTime() {
         return fStartTime;
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.ITimeRange#getEndTime()
+    /**
+     * @since 2.0
      */
     @Override
     public ITmfTimestamp getEndTime() {
         return fEndTime;
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.ITimeRange#hasTimeInfo()
-     */
     @Override
     public boolean hasTimeInfo() {
         return fHasTimeInfo;
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.BasicExecutionOccurrence#draw(org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IGC)
-     */
     @Override
     public void draw(IGC context) {
         super.draw(context);
@@ -199,10 +188,6 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
         }
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.BasicExecutionOccurrence#setUnselectedFillColor(org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IGC)
-     */
     @Override
     protected IColor setUnselectedFillColor(IGC context) {
         ISDPreferences pref = SDViewPref.getInstance();
@@ -216,23 +201,17 @@ public class ExecutionOccurrence extends BasicExecutionOccurrence implements ITi
                 context.setBackground(tempFillColor);
             }
             return tempFillColor;
-        } else {
-            return super.setUnselectedFillColor(context);
         }
+        return super.setUnselectedFillColor(context);
     }
 
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.BasicExecutionOccurrence#setUnselectedStrokeColor(org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IGC)
-     */
     @Override
     protected IColor setUnselectedStrokeColor(IGC context) {
         if (fStrokeRGB != null) {
             IColor tempStrokeColor = context.createColor(fStrokeRGB[0], fStrokeRGB[1], fStrokeRGB[2]);
             context.setForeground(tempStrokeColor);
             return tempStrokeColor;
-        } else {
-            return super.setUnselectedStrokeColor(context);
         }
+        return super.setUnselectedStrokeColor(context);
     }
 }
This page took 0.027015 seconds and 5 git commands to generate.