com.sun.hotspot.igv.view.widgets.FigureWidget Java Examples
The following examples show how to use
com.sun.hotspot.igv.view.widgets.FigureWidget.
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: DiagramScene.java From hottub with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #2
Source File: DiagramScene.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #3
Source File: DiagramScene.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #4
Source File: DiagramScene.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #5
Source File: DiagramScene.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #6
Source File: DiagramScene.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #7
Source File: DiagramScene.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #8
Source File: DiagramScene.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #9
Source File: DiagramScene.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #10
Source File: DiagramScene.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #11
Source File: DiagramScene.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #12
Source File: DiagramScene.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #13
Source File: DiagramScene.java From hottub with GNU General Public License v2.0 | 6 votes |
public void gotoFigures(final List<Figure> figures) { Rectangle overall = null; showFigures(figures); for (Figure f : figures) { FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); Rectangle r2 = new Rectangle(p.x, p.y, r.width, r.height); if (overall == null) { overall = r2; } else { overall = overall.union(r2); } } } if (overall != null) { centerRectangle(overall); } }
Example #14
Source File: DiagramScene.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void gotoFigure(final Figure f) { if (!isVisible(f)) { showFigure(f); } FigureWidget fw = getFigureWidget(f); if (fw != null) { Rectangle r = fw.getBounds(); Point p = fw.getLocation(); centerRectangle(new Rectangle(p.x, p.y, r.width, r.height)); // Select figure clearSelection(); addToSelection(fw); selectionUpdated(); } }
Example #15
Source File: DiagramScene.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #16
Source File: DiagramScene.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Set<Integer> getSelectedNodes() { Set<Integer> result = new HashSet<Integer>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.addAll(fw.getFigure().getSource().getSourceNodesAsSet()); } } } return result; }
Example #17
Source File: DiagramScene.java From hottub with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #18
Source File: DiagramScene.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #19
Source File: DiagramScene.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #20
Source File: DiagramScene.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #21
Source File: DiagramScene.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private boolean isVisible(Connection c) { FigureWidget w1 = figureWidgets.get(c.getInputSlot().getFigure()); FigureWidget w2 = figureWidgets.get(c.getOutputSlot().getFigure()); if (w1.isVisible() && w2.isVisible()) { return true; } return false; }
Example #22
Source File: DiagramScene.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private boolean isVisible(Connection c) { FigureWidget w1 = figureWidgets.get(c.getInputSlot().getFigure()); FigureWidget w2 = figureWidgets.get(c.getOutputSlot().getFigure()); if (w1.isVisible() && w2.isVisible()) { return true; } return false; }
Example #23
Source File: DiagramScene.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #24
Source File: DiagramScene.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private boolean isVisible(Connection c) { FigureWidget w1 = figureWidgets.get(c.getInputSlot().getFigure()); FigureWidget w2 = figureWidgets.get(c.getOutputSlot().getFigure()); if (w1.isVisible() && w2.isVisible()) { return true; } return false; }
Example #25
Source File: DiagramScene.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Set<Integer> getSelectedNodes() { Set<Integer> result = new HashSet<Integer>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.addAll(fw.getFigure().getSource().getSourceNodesAsSet()); } } } return result; }
Example #26
Source File: DiagramScene.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Set<Figure> getSelectedFigures() { Set<Figure> result = new HashSet<Figure>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.add(fw.getFigure()); } } } return result; }
Example #27
Source File: DiagramScene.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Set<Integer> getSelectedNodes() { Set<Integer> result = new HashSet<Integer>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.addAll(fw.getFigure().getSource().getSourceNodesAsSet()); } } } return result; }
Example #28
Source File: DiagramScene.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private boolean isVisible(Connection c) { FigureWidget w1 = figureWidgets.get(c.getInputSlot().getFigure()); FigureWidget w2 = figureWidgets.get(c.getOutputSlot().getFigure()); if (w1.isVisible() && w2.isVisible()) { return true; } return false; }
Example #29
Source File: DiagramScene.java From hottub with GNU General Public License v2.0 | 5 votes |
private boolean isVisible(Connection c) { FigureWidget w1 = figureWidgets.get(c.getInputSlot().getFigure()); FigureWidget w2 = figureWidgets.get(c.getOutputSlot().getFigure()); if (w1.isVisible() && w2.isVisible()) { return true; } return false; }
Example #30
Source File: DiagramScene.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Set<Integer> getSelectedNodes() { Set<Integer> result = new HashSet<Integer>(); for (Widget w : selectedWidgets) { if (w instanceof FigureWidget) { FigureWidget fw = (FigureWidget) w; if (fw.getState().isSelected()) { result.addAll(fw.getFigure().getSource().getSourceNodesAsSet()); } } } return result; }