/** * DOCUMENT ME! * * @return DOCUMENT ME! */ public List getNodeViewsList() { final List<NodeView> list = new ArrayList<NodeView>(getNodeViewCount()); final int[] gp_indices = getGraphPerspective().getNodeIndicesArray(); final int gpSize = gp_indices.length; for (int i = 0; i < gpSize; i++) list.add(getNodeView(gp_indices[i])); return list; }
public boolean setGraphPerspective(GraphPerspective gp) { if (gp.getRootGraph() != m_rootGraph) return false; final int[] nodeInx = gp.getNodeIndicesArray(); final int[] edgeInx = gp.getEdgeIndicesArray(); for (int i = 0; i < nodeInx.length; i++) m_rootGraph.addNodeMetaChild(m_rootGraphIndex, nodeInx[i]); for (int i = 0; i < edgeInx.length; i++) m_rootGraph.addEdgeMetaChild(m_rootGraphIndex, edgeInx[i]); return true; }
/** * DOCUMENT ME! * * @param gp DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean setGraphPerspective(GraphPerspective gp) { if (gp.getRootGraph() != m_rootGraph) return false; final int[] nodeInx = gp.getNodeIndicesArray(); final int[] edgeInx = gp.getEdgeIndicesArray(); for (int i = 0; i < nodeInx.length; i++) m_rootGraph.addNodeMetaChild(m_rootGraphIndex, nodeInx[i]); for (int i = 0; i < edgeInx.length; i++) m_rootGraph.addEdgeMetaChild(m_rootGraphIndex, edgeInx[i]); return true; }
/** * DOCUMENT ME! * * @param gp DOCUMENT ME! * * @return DOCUMENT ME! */ public boolean setGraphPerspective(GraphPerspective gp) { if (gp.getRootGraph() != m_rootGraph) return false; final int[] nodeInx = gp.getNodeIndicesArray(); final int[] edgeInx = gp.getEdgeIndicesArray(); for (int i = 0; i < nodeInx.length; i++) m_rootGraph.addNodeMetaChild(m_rootGraphIndex, nodeInx[i]); for (int i = 0; i < edgeInx.length; i++) m_rootGraph.addEdgeMetaChild(m_rootGraphIndex, edgeInx[i]); return true; }
throw new IllegalStateException("node counts should still be the same"); int[] nodeInxArr = persp2.getNodeIndicesArray(); int[] nodeIndicesArray = persp.getNodeIndicesArray();
final int nativeParentNodeInx = ~returnThis; final int[] perspEdgeInxArr = perspective.getEdgeIndicesArray(); final int[] perspNodeInxArr = perspective.getNodeIndicesArray();
GraphPerspective graphPerspective = graph_view.getGraphPerspective(); IntArrayList gpNodeIndices = new IntArrayList(graphPerspective.getNodeIndicesArray()); IntArrayList gpEdgeIndices = new IntArrayList(graphPerspective.getEdgeIndicesArray());