com.sun.hotspot.igv.hierarchicallayout.HierarchicalLayoutManager Java Examples
The following examples show how to use
com.sun.hotspot.igv.hierarchicallayout.HierarchicalLayoutManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HierarchicalGraphLayout.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #2
Source File: HierarchicalGraphLayout.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #3
Source File: HierarchicalGraphLayout.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #4
Source File: HierarchicalGraphLayout.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #5
Source File: HierarchicalGraphLayout.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new LinkedHashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new LinkedHashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #6
Source File: HierarchicalGraphLayout.java From hottub with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #7
Source File: HierarchicalGraphLayout.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }
Example #8
Source File: HierarchicalGraphLayout.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected void performGraphLayout(UniversalGraph<N, E> graph) { Set<LinkWrapper> links = new HashSet<LinkWrapper>(); Set<VertexWrapper> vertices = new HashSet<VertexWrapper>(); Map<N, VertexWrapper> vertexMap = new HashMap<N, VertexWrapper>(); for (N node : graph.getNodes()) { VertexWrapper v = new VertexWrapper(node, graph); vertexMap.put(node, v); vertices.add(v); } for (E edge : graph.getEdges()) { N source = graph.getEdgeSource(edge); N target = graph.getEdgeTarget(edge); LinkWrapper l = new LinkWrapper(vertexMap.get(source), vertexMap.get(target)); links.add(l); } HierarchicalLayoutManager m = new HierarchicalLayoutManager(HierarchicalLayoutManager.Combine.NONE); LayoutGraph layoutGraph = new LayoutGraph(links, vertices); m.doLayout(layoutGraph); }