GraphView icon indicating copy to clipboard operation
GraphView copied to clipboard

Update node data

Open renyuneyun opened this issue 6 years ago • 3 comments

Each Node carries some data, and the data is used to generate the view.

How can I update the data and let the view reflect that (i.e. re-draw that particular node [and maybe its edges])?

renyuneyun avatar Jun 16 '19 00:06 renyuneyun

At the moment there is no possibility to update the graphview without a complete redraw.

GregorBlock avatar Jun 16 '19 13:06 GregorBlock

Hmm, so creating a custom adapter also won't help?

renyuneyun avatar Jun 16 '19 18:06 renyuneyun

You can call GraphAdapter.notifyInvalidated() to request a complete redraw. There are other notify* methods, but they all do the same for now.

DennisBlock avatar Jun 17 '19 14:06 DennisBlock