Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamically generated icons #345

Open
ohle opened this issue May 5, 2020 · 3 comments
Open

dynamically generated icons #345

ohle opened this issue May 5, 2020 · 3 comments

Comments

@ohle
Copy link

ohle commented May 5, 2020

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
Copy link
Contributor

hichbra commented May 5, 2020

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

@hermann-59
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants