com.sun.hotspot.igv.graph.OutputSlot Java Examples
The following examples show how to use
com.sun.hotspot.igv.graph.OutputSlot.
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: ColorFilter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #2
Source File: ColorFilter.java From hottub with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #3
Source File: ConnectionFilter.java From hottub with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #4
Source File: SplitFilter.java From hottub with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #5
Source File: SplitFilter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #6
Source File: ConnectionFilter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #7
Source File: ColorFilter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #8
Source File: ColorFilter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #9
Source File: ConnectionFilter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #10
Source File: SplitFilter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #11
Source File: ConnectionFilter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #12
Source File: SplitFilter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #13
Source File: ColorFilter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #14
Source File: SplitFilter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #15
Source File: ConnectionFilter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #16
Source File: ColorFilter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #17
Source File: ConnectionFilter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #18
Source File: SplitFilter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #19
Source File: ColorFilter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void applyRule(ColorRule rule, Figure f) { if (rule.getColor() != null) { f.setColor(rule.getColor()); } Color color = rule.getLineColor(); ConnectionStyle style = rule.getLineStyle(); for (OutputSlot s : f.getOutputSlots()) { for (Connection c : s.getConnections()) { if (color != null) { c.setColor(color); } if (style != null) { c.setStyle(style); } } } }
Example #20
Source File: SplitFilter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram d) { List<Figure> list = selector.selected(d); for (Figure f : list) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { InputSlot is = c.getInputSlot(); is.setName(f.getProperties().get("dump_spec")); String s = f.getProperties().get("short_name"); if (s != null) { is.setShortName(s); } } } d.removeFigure(f); } }
Example #21
Source File: ConnectionFilter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void apply(Diagram diagram) { Properties.PropertySelector<Figure> selector = new Properties.PropertySelector<Figure>(diagram.getFigures()); for (ConnectionStyleRule rule : connectionStyleRules) { List<Figure> figures = null; if (rule.getSelector() != null) { figures = rule.getSelector().selected(diagram); } else { figures = diagram.getFigures(); } for (Figure f : figures) { for (OutputSlot os : f.getOutputSlots()) { for (Connection c : os.getConnections()) { if (figures.contains(c.getInputSlot().getFigure())) { c.setStyle(rule.getLineStyle()); c.setColor(rule.getLineColor()); } } } } } }
Example #22
Source File: SlotWidget.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #23
Source File: SlotWidget.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #24
Source File: SlotWidget.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #25
Source File: OutputSlotWidget.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public OutputSlotWidget(OutputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) { super(slot, scene, parent, fw); outputSlot = slot; Point p = outputSlot.getRelativePosition(); p.y += getSlot().getFigure().getHeight() - Figure.SLOT_START; p.x -= this.calculateClientArea().width / 2; this.setPreferredLocation(p); }
Example #26
Source File: SlotWidget.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #27
Source File: SlotWidget.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #28
Source File: SlotWidget.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #29
Source File: SlotWidget.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected void paintWidget() { if (scene.getRealZoomFactor() < ZOOM_FACTOR) { return; } if (bufferImage == null) { Graphics2D g = this.getGraphics(); g.setColor(Color.DARK_GRAY); int w = this.getBounds().width; int h = this.getBounds().height; if (getSlot().getShortName() != null && getSlot().getShortName().length() > 0 && scene.getRealZoomFactor() >= TEXT_ZOOM_FACTOR) { Font f = new Font("Arial", Font.PLAIN, 8); g.setFont(f.deriveFont(7.5f)); Rectangle2D r1 = g.getFontMetrics().getStringBounds(getSlot().getShortName(), g); g.drawString(getSlot().getShortName(), (int) (this.getBounds().width - r1.getWidth()) / 2, (int) (this.getBounds().height + r1.getHeight()) / 2); } else { if (slot instanceof OutputSlot) { g.fillArc(w / 4, -h / 4 - 1, w / 2, h / 2, 180, 180); } else { g.fillArc(w / 4, 3 * h / 4, w / 2, h / 2, 0, 180); } } } }
Example #30
Source File: OutputSlotWidget.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public OutputSlotWidget(OutputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) { super(slot, scene, parent, fw); outputSlot = slot; init(); getFigureWidget().getRightWidget().addChild(this); }