package Draw2D_1;
import org.eclipse.draw2d.RectangleFigure;
import org.eclipse.swt.graphics.Font;
public class NodeBd extends RectangleFigure
{
private int id;
private Chip chip;
@Override
public void setFont(Font f)
{
// TODO Auto-generated method stub
f = new Font(null, "12345613456321",0,10);
super.setFont(f);
}
public NodeBd(int id){
this.id = id;
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public Chip getChip()
{
return chip;
}
public void setChip(Chip chip)
{
this.chip = chip;
}
}
import org.eclipse.draw2d.RectangleFigure;
import org.eclipse.swt.graphics.Font;
public class NodeBd extends RectangleFigure
{
private int id;
private Chip chip;
@Override
public void setFont(Font f)
{
// TODO Auto-generated method stub
f = new Font(null, "12345613456321",0,10);
super.setFont(f);
}
public NodeBd(int id){
this.id = id;
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public Chip getChip()
{
return chip;
}
public void setChip(Chip chip)
{
this.chip = chip;
}
}