com.sun.hotspot.igv.graph.Connection Java Examples
The following examples show how to use
com.sun.hotspot.igv.graph.Connection.
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-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 #2
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 #3
Source File: DiagramConnectionWidget.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #4
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 #5
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 #6
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 #7
Source File: DiagramConnectionWidget.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #8
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 #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: DiagramConnectionWidget.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #11
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 #12
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 #13
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 #14
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 #15
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 #16
Source File: DiagramConnectionWidget.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #17
Source File: DiagramConnectionWidget.java From hottub with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #18
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 #19
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 #20
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 #21
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 #22
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 #23
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 #24
Source File: DiagramConnectionWidget.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #25
Source File: GraalEdgeColorFilter.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public void apply(Diagram d) { List<Figure> figures = d.getFigures(); for (Figure f : figures) { for (InputSlot is : f.getInputSlots()) { for (Connection c : is.getConnections()) { String type = c.getType(); if (type == "Association" && "EndNode".equals(c.getOutputSlot().getFigure().getProperties().get("class"))) { type = "Successor"; } if (type != null) { Color typeColor = usageColor.get(type); if (typeColor == null) { c.setColor(otherUsageColor); } else { c.setColor(typeColor); } if (c.getStyle() != ConnectionStyle.DASHED && type == "Successor") { c.setStyle(ConnectionStyle.BOLD); } } } } } }
Example #26
Source File: LineWidget.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void setHighlighted(boolean b) { this.highlighted = b; Set<Object> highlightedObjects = new HashSet<>(scene.getHighlightedObjects()); Set<Object> highlightedObjectsChange = new HashSet<>(); for (Connection c : connections) { highlightedObjectsChange.add(c.getInputSlot().getFigure()); highlightedObjectsChange.add(c.getInputSlot()); highlightedObjectsChange.add(c.getOutputSlot().getFigure()); highlightedObjectsChange.add(c.getOutputSlot()); } if(b) { highlightedObjects.addAll(highlightedObjectsChange); } else { highlightedObjects.removeAll(highlightedObjectsChange); } scene.setHighlightedObjects(highlightedObjects); this.revalidate(true); }
Example #27
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 #28
Source File: DiagramConnectionWidget.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** Creates a new instance of ConnectionWidget */ public DiagramConnectionWidget(Connection connection, Scene scene) { super(scene); this.connection = connection; color = connection.getColor(); if (connection.getStyle() == Connection.ConnectionStyle.DASHED) { this.setStroke(DASHED_STROKE); } else if (connection.getStyle() == Connection.ConnectionStyle.BOLD) { this.setStroke(BOLD_STROKE); } else { this.setStroke(NORMAL_STROKE); } this.setCheckClipping(true); clientArea = new Rectangle(); updateControlPoints(); }
Example #29
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 #30
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); } }