graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
398 stars 109 forks source link

dynamically generated icons #345

Open ohle opened 4 years ago

ohle commented 4 years ago

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?

hichbra commented 4 years ago

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

hermann-59 commented 1 month ago

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?

hermann-59 commented 1 month ago

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