how to display tree from visualizationComponent?

rj
rj New Altair Community Member
edited November 5 in Community Q&A
Hi
how can i display tree from visualizationComponent and i need to save  tree in some location
later on i need to display it.

IOObject io = ioResult.getElementAt(0);
        TreeModel model = (TreeModel) ioResult.getElementAt(0);
          TreeModelGraphRenderer gr=new TreeModelGraphRenderer();
        GraphCreator<String, String> graphCreator = gr.getGraphCreator(model, ioResult);
                Component visualizationComponent = gr.getVisualizationComponent(model, ioResult);

from here how can i proceed to display tree?
Thanks in advance
Tagged:

Answers