com.sun.hotspot.igv.graph.Connection.ConnectionStyle Java Examples

The following examples show how to use com.sun.hotspot.igv.graph.Connection.ConnectionStyle. 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 TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
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 jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
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: ColorFilter.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
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 #4
Source File: ColorFilter.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
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 #5
Source File: ColorFilter.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
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 #6
Source File: ColorFilter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
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: ColorFilter.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
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: GraalEdgeColorFilter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@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 #9
Source File: ColorFilter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
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 #10
Source File: ColorFilter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #11
Source File: ColorFilter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #12
Source File: ColorFilter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #13
Source File: ColorFilter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #14
Source File: ColorFilter.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #15
Source File: ColorFilter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #16
Source File: ColorFilter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #17
Source File: ColorFilter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ColorRule(Selector selector, Color c, Color lineColor, Connection.ConnectionStyle lineStyle) {
    this.selector = selector;
    this.color = c;
    this.lineColor = lineColor;
    this.lineStyle = lineStyle;

}
 
Example #18
Source File: ColorFilter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #19
Source File: ColorFilter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #20
Source File: ColorFilter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #21
Source File: ColorFilter.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #22
Source File: ColorFilter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #23
Source File: ColorFilter.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #24
Source File: ColorFilter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}
 
Example #25
Source File: ColorFilter.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public Connection.ConnectionStyle getLineStyle() {
    return lineStyle;
}