comparison org.eclipse.draw2d/src/org/eclipse/draw2d/AbsoluteBendpoint.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.draw2d.AbsoluteBendpoint;
14
15 import java.lang.all;
16
17 import org.eclipse.draw2d.geometry.Point;
18 import org.eclipse.draw2d.Bendpoint;
19
20 /**
21 * AbsoluteBendpoint is a Bendpoint that defines its location simply as its X and Y
22 * coordinates. It is used by bendable {@link Connection Connections}.
23 */
24 public class AbsoluteBendpoint
25 : Point
26 , Bendpoint
27 {
28
29 /**
30 * Creates a new AbsoluteBendpoint at the Point p.
31 * @param p The absolute location of the bendpoint
32 * @since 2.0
33 */
34 public this(Point p) {
35 super(p);
36 }
37
38 /**
39 * Creates a new AbsoluteBendpoint at the Point (x,y).
40 * @param x The X coordinate
41 * @param y The Y coordinate
42 * @since 2.0
43 */
44 public this(int x, int y) {
45 super(x, y);
46 }
47
48 /**
49 * @see org.eclipse.draw2d.Bendpoint#getLocation()
50 */
51 public Point getLocation() {
52 return this;
53 }
54
55 }