You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like the resulting graph to contain all nodes, but to show labels only for those with degree>1000.
Call of exportToLabelVisible(query) changes labels of nodes to be not visible (node.isVisible() is false), but the resulting graph in the file still has labels for all the nodes.
Thanks for the reply.
I tried refreshing preview, did not work for me :/
filterController.exportToLabelVisible(query);
GraphViewview = graphModel.getGraphVisible().getView();
graphModel.setVisibleView(view);
Lookup.getDefault().lookup(PreviewController.class).refreshPreview(workspace);
// here goes export
However, I solved the problem in a pretty dirty way, by iterating through all nodes and setting labels to empty string if a nodes' textProperties set to not visible:
NodeIterablenodes = graphModel.getGraph().getNodes();
filterController.exportToLabelVisible(query);
for (Noden : nodes) {
if (!n.getTextProperties().isVisible()) {
n.setLabel("");
}
}
//here goes export
Hi, I would like the resulting graph to contain all nodes, but to show labels only for those with degree>1000.
Call of
exportToLabelVisible(query)
changes labels of nodes to be not visible (node.isVisible()
is false), but the resulting graph in the file still has labels for all the nodes.I know how to do that in desktop app, but really stuck with the toolkit. I would appreciate any help.
The text was updated successfully, but these errors were encountered: