]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyEdgeBends.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / impl / proxy / ProxyEdgeBends.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.g2d.element.handler.impl.proxy;
13
14 import java.awt.geom.Path2D;
15 import java.awt.geom.Point2D;
16 import java.util.List;
17
18 import org.simantics.g2d.element.IElement;
19 import org.simantics.g2d.element.handler.BendsHandler;
20
21
22 /**
23  * @author Toni Kalajainen
24  */
25 public class ProxyEdgeBends implements BendsHandler {
26
27         private static final long serialVersionUID = 4166513019494895193L;
28         BendsHandler orig;
29         IProxyProvider provider;
30         
31         public ProxyEdgeBends(IProxyProvider provider, BendsHandler orig) {
32                 this.provider = provider;
33                 this.orig = orig;
34         }
35
36         @Override
37         public AngleType getAngleType(IElement e) {
38                 return orig.getAngleType(e);
39         }
40
41         @Override
42         public void setAngleType(IElement e, AngleType angleType) {
43                 orig.setAngleType(e, angleType);
44         }
45
46         @Override
47         public void getBends(IElement e, List<Bend> bends) {
48                 orig.getBends(e, bends);
49         }
50
51         @Override
52         public Bend addBend(IElement e, int index, Point2D pos) {
53                 return orig.addBend(e, index, pos);
54         }
55
56         @Override
57         public void getBendPosition(IElement e, Bend b, Point2D pos) {
58                 orig.getBendPosition(e, b, pos);
59         }
60
61         @Override
62         public boolean removeBend(IElement e, Bend b) {
63                 return orig.removeBend(e, b);
64         }
65
66         @Override
67         public Path2D getPath(IElement e) {
68                 return orig.getPath(e);
69         }
70
71         @Override
72         public void setPath(IElement e, Path2D p) {
73                 orig.setPath(e, p);
74         }
75
76         @Override
77         public int getBendsCount(IElement e) {
78                 return orig.getBendsCount(e);
79         }
80
81         @Override
82         public void moveBend(IElement e, Bend b, Point2D pos) {
83                 orig.moveBend(e, b, pos);
84         }
85         
86 }