Java源码示例:com.sun.hotspot.igv.data.InputBlockEdge

示例1
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;
}
 
示例2
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)));

}
 
示例3
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>();
}
 
示例4
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;
}
 
示例5
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)));

}
 
示例6
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>();
}
 
示例7
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;
}
 
示例8
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)));

}
 
示例9
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>();
}
 
示例10
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;
}
 
示例11
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)));

}
 
示例12
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>();
}
 
示例13
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;
}
 
示例14
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)));

}
 
示例15
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>();
}
 
示例16
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;
}
 
示例17
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)));

}
 
示例18
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>();
}
 
示例19
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;
}
 
示例20
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)));

}
 
示例21
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>();
}
 
示例22
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;
}
 
示例23
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)));

}
 
示例24
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>();
}
 
示例25
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)));
}
 
示例26
public InputBlockEdge getEdge() {
    return edge;
}
 
示例27
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)));
}
 
示例28
public InputBlockEdge getEdge() {
    return edge;
}
 
示例29
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)));
}
 
示例30
public InputBlockEdge getEdge() {
    return edge;
}