Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » tree item images...
tree item images... [message #442241] Mon, 30 August 2004 15:31 Go to next message
Eclipse UserFriend
Originally posted by: fmahjobi.entrasys.com

Is there a way to dynamically paint part of the rectangle where the image
is going to appear for the treeitems in the tree?

I have done this before in the switg.TreeCellRenderer by overloading the
paint(Graphics g) method in order to paint some extra info next to the
icon of a treenode.

I looked through the SWT documentation and was unable to find anything
that would make it possible. Right now the only option i have is to return
different images dynamically when certain condition is met. This option is
not desireable since i would have to build different icons for the same
node that changes state.

Thanks,
Farzad
Re: tree item images... [message #442548 is a reply to message #442241] Tue, 07 September 2004 15:58 Go to previous message
Eclipse UserFriend
You'll have to build the different icons. It's a platform limitation.

"Farzad Mahjobi" <fmahjobi@entrasys.com> wrote in message
news:cgvv9s$9sp$1@eclipse.org...
> Is there a way to dynamically paint part of the rectangle where the image
> is going to appear for the treeitems in the tree?
>
> I have done this before in the switg.TreeCellRenderer by overloading the
> paint(Graphics g) method in order to paint some extra info next to the
> icon of a treenode.
>
> I looked through the SWT documentation and was unable to find anything
> that would make it possible. Right now the only option i have is to return
> different images dynamically when certain condition is met. This option is
> not desireable since i would have to build different icons for the same
> node that changes state.
>
> Thanks,
> Farzad
>
Previous Topic:What's the "proper" way to handle images & icons in Eclipse
Next Topic:SWT Browser
Goto Forum:
  


Current Time: Thu Nov 06 12:54:52 EST 2025

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

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

Back to the top