/**********************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- *
+ * Copyright (c) 2005, 2012 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.ui.views.uml2sd.drawings.IGC;
/**
* Class to add a hot spot marker.
- *
+ *
* @version 1.0
* @author sveyrier
*/
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
-
+
/**
* Default constructor
*/
/**
* Set the marker image.
- *
+ *
* @param img A image to set
*/
public void setImage(IImage img) {
/**
* Set the lifeline on which the execution occurrence appears.
- *
+ *
* @param occ the parent lifeline
*/
public void setExecution(BasicExecutionOccurrence occ) {
/**
* Get the lifeline on which the execution occurrence appears.
- *
+ *
* @return - the parent lifeline
*/
public BasicExecutionOccurrence getExecOcc() {
}
/**
- * Returns the occurrence number.
- *
+ * Returns the occurrence number.
+ *
* @return the occurrence number.
*/
public int getOccurrence() {
/**
* Set the occurrence number.
- *
+ *
* @param occ A number to set.
*/
public void setOccurrence(int occ) {
int width = getWidth();
int height = getHeight();
- if (Frame.contains(x, y, width, height, xValue, yValue)) {
+ if (GraphNode.contains(x, y, width, height, xValue, yValue)) {
return true;
}
return false;