Java Code Examples for com.sun.hotspot.igv.graph.Figure#getPredecessorSet()
The following examples show how to use
com.sun.hotspot.igv.graph.Figure#getPredecessorSet() .
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: FigureWidget.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 2
Source File: FigureWidget.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 3
Source File: FigureWidget.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 4
Source File: FigureWidget.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 5
Source File: FigureWidget.java From hottub with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 6
Source File: FigureWidget.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 7
Source File: FigureWidget.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void addFigureToSubMenu(JMenu subMenu, final Figure f, boolean successor, int depth) { Set<Figure> set = f.getPredecessorSet(); if (successor) { set = f.getSuccessorSet(); } int count = set.size(); if (set.contains(f)) { count--; } for (Figure f2 : set) { if (f2 == f) { continue; } count--; addFigureToMenu(subMenu, f2, successor, depth - 1); if (count > 0) { subMenu.addSeparator(); } } }
Example 8
Source File: FigureWidget.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void build(JPopupMenu menu, Figure figure, FigureWidget figureWidget, boolean successors, DiagramScene diagramScene) { Set<Figure> set = figure.getPredecessorSet(); if (successors) { set = figure.getSuccessorSet(); } boolean first = true; for (Figure f : set) { if (f == figure) { continue; } if (first) { first = false; } else { menu.addSeparator(); } Action go = diagramScene.createGotoAction(f); menu.add(go); JMenu preds = new JMenu("Nodes Above"); preds.addMenuListener(figureWidget.new NeighborMenuListener(preds, f, false)); menu.add(preds); JMenu succs = new JMenu("Nodes Below"); succs.addMenuListener(figureWidget.new NeighborMenuListener(succs, f, true)); menu.add(succs); } if (figure.getPredecessorSet().isEmpty() && figure.getSuccessorSet().isEmpty()) { menu.add("(none)"); } }