michael nesterenko michael nesterenko - 1 year ago 90
Java Question

Styling zest graph nodes and connections

I wish to change some visual properties of nodes and connections. How better can it be done? I found that visual information is applied in model factory that is returned from

. There are three factories and all are placed in internal package

Is it good approach to override
and return own factory that does all necessary styling actions?

Answer Source

There is interface org.eclipse.zest.core.viewers.ISelfStyleProvider which solves my problem without hacking into zest internal structure!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download