| /****************************************************************************** |
| * Copyright (c) 2007 IBM Corporation and others. |
| * 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 Corporation - initial API and implementation |
| ****************************************************************************/ |
| package org.eclipse.gmf.runtime.draw2d.ui.figures; |
| |
| import org.eclipse.draw2d.ConnectionAnchor; |
| import org.eclipse.draw2d.geometry.Point; |
| |
| /** |
| * The interface allows to specify connection anchor location for |
| * a connection routed with Orthogonal connection routers. |
| * |
| * IMPORTANT: this interface is not to be implemented by clients, since |
| * this is an API under construction |
| * |
| * @author aboyko |
| * |
| */ |
| public interface OrthogonalConnectionAnchor extends ConnectionAnchor { |
| |
| /** |
| * Determines connection anchor point for Orthogonal connection. |
| * Generally, the anchor point would the intersection of perpendicular |
| * line drawn from the <code>orthoReference</code> point to the shape and |
| * shape's edge. |
| * |
| * @param orthoReference the reference point |
| * @return The location of the orthogonal connection anchor. |
| */ |
| public Point getOrthogonalLocation(Point orthoReference); |
| |
| } |