I am new to prefuse and don't understand several things regarding nodes.
Its important to say that I build the graph in real-time and not loading it from any file.
Thanks, Ozrad.
Three answers to your three questions:
prefuse.controls.ControlAdapter
and add it to the Display
.prefuse.action.assignment.DataColorAction
assigns color based on a data field. For more advanced scenarios you can use ColorAction
with predicates or extend the class DataColorAction
.You can add columns to the node table to store metadata. A column can also store objects if you need it:
vg.getNodeTable().addColumn("meta", MyMetaData.class);