Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » change the figure image at runtime
change the figure image at runtime [message #160280] Fri, 03 December 2004 06:54 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

I have a Panel host an image and some texts. I would like to change the
displayed image
programmatically based on some state. Can someone please help on this?
Thanks.

slam
Re: change the figure image at runtime [message #160352 is a reply to message #160280] Fri, 03 December 2004 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: gaslade.yahoo.com

So firstly you would have to be aware of the state change that effects
the visual.... i.e your model object would be listening to something.

When the state change happens your model object would respond in some
way, for example, setting it's active image to some new image reflecting
the state change, then it would in turn fire an event that its edit part
would be listening for.

The edit part would respond to this event by calling refreshVisuals() on
itself. Part of refreshVisuals() would be to ask the model object for
the image to display.

Guy


slam wrote:

> Hi,
>
> I have a Panel host an image and some texts. I would like to change the
> displayed image
> programmatically based on some state. Can someone please help on this?
> Thanks.
>
> slam
>
>
Previous Topic:what happens when create a new model from palette?
Next Topic:Making a Case tool
Goto Forum:
  


Current Time: Fri Apr 26 08:39:03 GMT 2024

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

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

Back to the top