Math2mat
|
00001 00015 package m2m.frontend.dynamicview.model; 00016 00017 public class BendPoint 00018 { 00022 private int [] height = new int[2]; 00026 private int [] width = new int[2]; 00030 private Connection conn; 00034 private int index; 00035 00036 00042 public void setHeight(int heightDim1, int heightDim2) 00043 { 00044 this.height[0] = heightDim1; 00045 this.height[1] = heightDim2; 00046 } 00047 00052 public int [] getHeight() 00053 { 00054 return height; 00055 } 00056 00057 00063 public void setWidth(int widthDim1, int widthDim2) 00064 { 00065 this.width[0] = widthDim1; 00066 this.width[1] = widthDim2; 00067 } 00068 00069 00074 public int [] getWidth() 00075 { 00076 return width; 00077 } 00078 00079 00084 public void setIndex(int index) 00085 { 00086 this.index = index; 00087 } 00088 00089 00094 public int getIndex() 00095 { 00096 return index; 00097 } 00098 00099 00104 public void setConnection(Connection conn) 00105 { 00106 this.conn = conn; 00107 } 00108 00109 00114 public Connection getConnection() 00115 { 00116 return conn; 00117 } 00118 }