graphstream/gs-core

dynamically generated icons

ohle opened this issue · 3 comments

ohle commented

I'm looking for a way to show a node in the viewer with a dynamically generated icon. However, even with dyn-icon, everything seems to ultimately boil down to URLs.

Is there a way to attach, e.g., a RenderedImage to a node to be used as its icon?

An URL is needed when you use an icon, so I don't think it's possible currently.

I use dyn_icon and provide the URL (as String, java,net.URL throw exception) in "ui.icon". The url uses "file://..." to specify a local file or "jar://..." to specify a resource in a jar file. But both cases doe not work. How can I use local files or files from jar?

It would be really nice if one could sepcify an Image or RenderedImage.