Examples of ConnectionWidget


Examples of org.netbeans.api.visual.widget.ConnectionWidget

                .createFreeRectangularAnchor(sourceNodeWidget, true) : null);
    }

    protected void attachEdgeTargetAnchor(String edge, String oldTargetNode,
            String targetNode) {
        ConnectionWidget widget = (ConnectionWidget) findWidget(edge);
        Widget targetNodeWidget = findWidget(targetNode);
        widget.setTargetAnchor(targetNodeWidget != null ? AnchorFactory
                .createFreeRectangularAnchor(targetNodeWidget, true) : null);
    }
View Full Code Here

Examples of org.netbeans.api.visual.widget.ConnectionWidget

        return widget;
    }

    @Override
    protected Widget attachEdgeWidget(String arg0) {
        ConnectionWidget connectionWidget = new ConnectionWidget(this);
        connectionLayer.addChild(connectionWidget);
        //connectionLayer.setLabel(arg0);
        return connectionWidget;
    }
View Full Code Here

Examples of org.netbeans.api.visual.widget.ConnectionWidget

        public Widget resolveTargetWidget(Scene arg0, Point arg1) {
            return null;
        }

        public void createConnection(Widget source, Widget target) {
            ConnectionWidget conn = new ConnectionWidget(GraphEditorScene.this);
            conn.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
            conn.setTargetAnchor(AnchorFactory.createRectangularAnchor(target));
            conn.setSourceAnchor(AnchorFactory.createRectangularAnchor(source));
            connectionLayer.addChild(conn);
        }
View Full Code Here

Examples of org.netbeans.api.visual.widget.ConnectionWidget

        w.getActions().addAction(moveAction);
        return w;
    }

    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;
    }
View Full Code Here

Examples of org.netbeans.api.visual.widget.ConnectionWidget

    }

    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)));

    }
View Full Code Here

Examples of org.netbeans.api.visual.widget.ConnectionWidget

    }

    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)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.