Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsResize a figure
https://www.eclipse.org/forums/index.php/mv/msg/156484/493239/#msg_493239
Hi:
I`m new in GEF, and I could not resize figure. I`m trying to change size of figure then add new item as follow:
if(isSelected()){
//create new figure
GridData data = new GridData();
this.add(ffigure,data);
this.setBound(new Rectangle(getBound()).resize(100,100)));
} else{
this.remove(figure);
this.setBound(new Rectangle(getBound()).resize(-100,-100)));
}
layout();
but it dose not work. I mean size of figure dose not change]]>Mostafa Barmshory2009-10-23T19:12:36-00:00