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);
}


}

你可能感兴趣的:(eclipse,算法)