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 15: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: Mon Apr 21 03:19:16 EDT 2014

Powered by FUDForum. Page generated in 0.01679 seconds