Change workflow editor background image

#1

I’d like to place an image as the background picture for the workflow editor. Could any one tell me how to achieve this?

Thanks in advance!

0 Likes

#2

Looks like that KNIME uses Eclipse GEF. Is it possible to call GEF API to change workflow editor’s background image from NodeFactory class?

0 Likes

#3

No, that is definitively not possible, since the NodeFactory knows nothing about GEF: there are no dependencies. As far as I know it is not possible to change the background image of the GraphicalEditor (referring GEF class) neither programmatically nor via the UI. Just out of curiosity: for what would you need such a feature? Are you planning to realize KNIME skins :wink:

0 Likes

#4

Thanks for your reply! I googled “GEF background image”, and found this blog http://eclipseo.blogspot.com/2008/09/background-image-to-gef-editor.html.

The reason why I’d like to have this feature is that users could have a pre-defined workflow as a background image, and they could overlay the node on top of that picture (which could be much fancier :).

0 Likes

#5

Nice idea! Providing example workflows is not an option? As you probably already know - they can be easily imported (right-click in the workflow projects, select “Import KNIME workflow”).

0 Likes

#6

Yes, I could do that. However, users would like to see some more shapes beyond rectangles :slight_smile: Also, they may have a legacy process flow graph in everybody’s mind, and they would instantly link KNIME nodes with what they knew if they see the graph. It would be a nice to have feature of KNIME.

0 Likes

#7

We have already a related feature request on our list: the possibility to draw rectangles, arrows and notes on the workflow in order to visually annotate and group the nodes on the workflow. That would probably go in your proposed direction? But as always it is just a matter of resources - no promises here :wink:

1 Like

#8

Hi Fabian,

That’s good to read. I would need that feature - being able to draw shapes on the Editor. When delivering some workflows, it is always nice to enhance explanations with annotations and more. I am not a big fan of PPT and I hate copying/pasting. Simply opening Knime and delivering everything from there is a great idea.

Also, do you have the intention of enabling image (.jpeg) inclusion on the editor (simply for illustration - no processing whatsoever)? Thanks!

0 Likes

#9

Hi @JackBibiRoot
take a look at the documentation:
https://docs.knime.com/2018-12/analytics_platform_workbench_guide/index.html#img-comments-annotations
on how to add annotations to a workflow. Also check out the following video:

best,
Gabriel

0 Likes

#10

Thanks for the video, I watched it but that does not answer my request! I would find cool to add a picture on the Editor, or adding shapes/arrows/etc. Just like you would do in PPT for instance.

0 Likes

#11

Hi there!

@JackBibiRoot I see. What would be the use case of this pictures/shapes/arrows/?

Maybe some print screen from paint can help :slight_smile:

Br,
Ivan

0 Likes