读书人

A小弟我自己写的connection连线算法Na

发布时间: 2012-10-26 10:30:59 作者: rapoo

A我自己写的connection连线算法NameRole
package Draw2D_1;

import org.eclipse.draw2d.Label;

public class RoleName extends Label{





private String name;
private int fid;
private Chip chip;

public RoleName(String name,Chip chip){
super.setText(name);
this.name = name;
this.chip = chip;
}

public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getFid() {
return fid;
}
public void setFid(int fid) {
this.fid = fid;
}
public Chip getChip() {
return chip;
}
public void setChip(Chip chip) {
this.chip = chip;
}

@Override
public void setText(String s) {
// TODO Auto-generated method stub
super.setText(s);
}


}

读书人网 >软件架构设计

热点推荐