| Resize a figure [message #493239] |
Fri, 23 October 2009 15:12 |
Mostafa Barmshory Messages: 2 Registered: October 2009 |
Junior Member |
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05069 seconds