blob: d9ad55971099f272693f2f1a41f1f26aea84d245 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.workflow.editor.parts;
import org.eclipse.draw2d.ChopboxAnchor;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
/**
* @author Donald G. Dunne
*/
class RightAnchor extends ChopboxAnchor {
RightAnchor(IFigure source) {
super(source);
}
@Override
public Point getLocation(Point reference) {
Rectangle r = getOwner().getBounds().getCopy();
getOwner().translateToAbsolute(r);
return r.getRight();
}
}