[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: logical zoom

WojT wrote:
How about the EditParts listen to the ZoomManager and change the figure
detail accordingly?


I am exactly doing like this :)
This feature + State Design Pattern = everything what I need to code my needs :)


I am using a SDP to describe two states of my figures (simple and complex). Simple one is used in zoom < 100% and complex one is used in zoom >= 100%.
in editpart on propertyChange() listening on zoom property when the zoom is < 100% i am doing:
figure.setState(SIMPLE)
and when zoom is >= 100%:
figure.setState(COMPLEX)
after refreshVisuals() everything is OK :))))


Pratik & Randy - GEF is GREAT! Thanks!!!!!!!

..::WojT::..



That's kind of clever :) I'm going to play with that.

Cheers,

~ Chris