Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Resize a figure (How could resize a figure by animation)  () 1 Vote
Resize a figure [message #493239] Fri, 23 October 2009 19:12
Mostafa Barmshory is currently offline Mostafa Barmshory
Messages: 2
Registered: October 2009
Junior Member
Embarrassed
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
Previous Topic:Highlighted border width
Next Topic:Draw two or more lines by using ZEST.
Goto Forum:
  


Current Time: Fri Sep 19 12:06:56 GMT 2014

Powered by FUDForum. Page generated in 0.01719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software