com.sun.hotspot.igv.data.InputBlockEdge Java Examples

The following examples show how to use com.sun.hotspot.igv.data.InputBlockEdge. 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: ControlFlowScene.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #2
Source File: BlockConnectionWidget.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #3
Source File: ControlFlowScene.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #4
Source File: ControlFlowScene.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #5
Source File: BlockConnectionWidget.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #6
Source File: ControlFlowScene.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #7
Source File: ControlFlowScene.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #8
Source File: BlockConnectionWidget.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #9
Source File: ControlFlowScene.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #10
Source File: ControlFlowScene.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #11
Source File: BlockConnectionWidget.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #12
Source File: ControlFlowScene.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #13
Source File: ControlFlowScene.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    BlockConnectionWidget w = new BlockConnectionWidget(this, edge);
    switch (edge.getState()) {
        case NEW:
            w.setBold(true);
            break;
        case DELETED:
            w.setDashed(true);
            break;
    }
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #14
Source File: BlockConnectionWidget.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #15
Source File: ControlFlowScene.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #16
Source File: ControlFlowScene.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #17
Source File: BlockConnectionWidget.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #18
Source File: ControlFlowScene.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #19
Source File: BlockConnectionWidget.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #20
Source File: ControlFlowScene.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #21
Source File: BlockConnectionWidget.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) {
    super(scene);

    this.edge = edge;
    this.from = (BlockWidget) scene.findWidget(edge.getFrom());
    this.to = (BlockWidget) scene.findWidget(edge.getTo());
    inputSlot = to.getInputSlot();
    outputSlot = from.getOutputSlot();
    points = new ArrayList<Point>();
}
 
Example #22
Source File: ControlFlowScene.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #23
Source File: ControlFlowScene.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected Widget attachEdgeWidget(InputBlockEdge edge) {
    ConnectionWidget w = new BlockConnectionWidget(this, edge);
    w.setRouter(RouterFactory.createDirectRouter());
    w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    edgeLayer.addChild(w);
    return w;
}
 
Example #24
Source File: ControlFlowScene.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected void attachEdgeSourceAnchor(InputBlockEdge edge, InputBlock oldSourceNode, InputBlock sourceNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setSourceAnchor(AnchorFactory.createRectangularAnchor(findWidget(sourceNode)));

}
 
Example #25
Source File: ControlFlowScene.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected void attachEdgeTargetAnchor(InputBlockEdge edge, InputBlock oldTargetNode, InputBlock targetNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setTargetAnchor(AnchorFactory.createRectangularAnchor(findWidget(targetNode)));
}
 
Example #26
Source File: BlockConnectionWidget.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public InputBlockEdge getEdge() {
    return edge;
}
 
Example #27
Source File: ControlFlowScene.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void attachEdgeTargetAnchor(InputBlockEdge edge, InputBlock oldTargetNode, InputBlock targetNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setTargetAnchor(AnchorFactory.createRectangularAnchor(findWidget(targetNode)));
}
 
Example #28
Source File: ControlFlowScene.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void attachEdgeTargetAnchor(InputBlockEdge edge, InputBlock oldTargetNode, InputBlock targetNode) {
    Widget w = this.findWidget(edge);
    assert w instanceof ConnectionWidget;
    ConnectionWidget cw = (ConnectionWidget) w;
    cw.setTargetAnchor(AnchorFactory.createRectangularAnchor(findWidget(targetNode)));
}
 
Example #29
Source File: BlockConnectionWidget.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public InputBlockEdge getEdge() {
    return edge;
}
 
Example #30
Source File: BlockConnectionWidget.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public InputBlockEdge getEdge() {
    return edge;
}