Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Paint my own tree node icons
Paint my own tree node icons [message #1049093] Thu, 25 April 2013 10:59 Go to next message
Falko Hanspach is currently offline Falko HanspachFriend
Messages: 6
Registered: April 2013
Junior Member
Hi everybody,

is there a way to paint my own icons at tree nodes without overwriting the TreeLayer class?
The default implementation in TreeLayer constructor looks like:
"indentedTreeImagePainter = new IndentedTreeImagePainter(treeRowModel);"

i have overwritten this in this way..
"indentedTreeImagePainter = new IndentedTreeImagePainter(treeRowModel, 30, new TreeImagePainter(treeRowModel, plusImage, minusImage, leafImage));"

but so i must overwrite the whole class. I've been looking for a better way Confused

Re: Paint my own tree node icons [message #1049901 is a reply to message #1049093] Fri, 26 April 2013 12:31 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2824
Registered: July 2012
Senior Member

thanks for reminding me of that ticket. With 0.9.0 this is not that easy to achieve. For 1.0.0 I added the possiblity to specify the image painters.

Previous Topic:Increase time of blinking
Next Topic:scroll very tall row that doesn't fit in table
Goto Forum:

Current Time: Tue Sep 21 00:16:37 GMT 2021

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

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

Back to the top