1 package org.catacomb.graph.arbor;
2
3
4
5 import org.catacomb.be.Position;
6 import org.catacomb.be.XYLocation;
7 import org.catacomb.interlish.content.ConnectionFlavor;
8 import org.catacomb.interlish.structure.AttachmentPoint;
9
10
11 public class SGAttachmentPoint implements AttachmentPoint {
12
13
14 private XYLocation xyloc;
15
16 private ConnectionFlavor flavor;
17 private String id;
18
19
20 public SGAttachmentPoint() {
21 flavor = new ConnectionFlavor("CellProbe");
22 id = "undefined";
23 }
24
25
26
27 public void setPosition(double x, double y) {
28 xyloc = new ManipXYLocation(x, y);
29 }
30
31
32 public void setID(String s) {
33 id = s;
34 }
35
36 public void setFlavor(ConnectionFlavor cf) {
37 flavor = cf;
38 }
39
40
41 public XYLocation getXYLocation() {
42 return xyloc;
43 }
44
45 public ConnectionFlavor getFlavor() {
46 return flavor;
47 }
48
49 public String getID() {
50 return id;
51 }
52
53
54
55 public void setPosition(Position pos) {
56 setPosition(pos.getX(), pos.getY());
57 }
58 }
59
60