Package org.jitterbit.ui.graph.edge

Examples of org.jitterbit.ui.graph.edge.GraphEdge


        controller.getGraph().showContextMenu(pm, p);
    }
   
    @Override
    public JPopupMenu getPopupMenu(GraphEdgeUi2D edgeUi, int x, int y) {
        GraphEdge edge = edgeUi.getEdge();
        JPopupMenu menu = null;
        if (edge instanceof PipelineActivityEdge) {
            menu = createMenuForPipelineActivityEdge((PipelineActivityEdge) edge);
        } else if (edge instanceof OperationActivityEdge) {
            menu = createMenuForOperationActivityEdge((OperationActivityEdge) edge);
View Full Code Here


        }
    }

    @Override
    public void nodesConnected(NodesConnectedEvent evt) {
        GraphEdge edge = evt.getNewEdge();
        updateEdge(edge);
        super.fireLayoutChanged(Arrays.asList(edge.from(), edge.to()));
    }
View Full Code Here

            if (destination instanceof OperationWrapper) {
                to = operationNodes.get(destination);
            } else if (destination instanceof EmailWrapper) {
                to = emailNodes.get(destination);
            }
            GraphEdge edge;
            if (route.getSourceActivity() != null) {
                edge = createScriptSourceEdge(route, from, (OperationWrapperNode) to);
            } else {
                edge = createOperationActivityEdge(route, from, to);
            }
View Full Code Here

            eventSupport.fireNodesConnected(edge);
        }
       
        private GraphEdge createScriptSourceEdge(Route route, OperationWrapperNode from, OperationWrapperNode to) {
            PipelineActivityNode activityNode = from.getChildFor(route.getSourceActivity());
            GraphEdge edge = new ScriptSourceEdge(activityNode, to);
            activityNode.addOutgoingRoute(edge);
            return edge;
        }
View Full Code Here

            activityNode.addOutgoingRoute(edge);
            return edge;
        }
       
        private GraphEdge createOperationActivityEdge(Route route, OperationWrapperNode from, AbstractGraphNode to) {
            GraphEdge edge = new OperationActivityEdge(from, to, route);
            from.addOutgoingRoute(edge);
            return edge;
        }
View Full Code Here

            }
            if (to != null) {
                // TODO: to may be null if the connecting node has already been removed. This is
                // not supposed to be possible according to the contract for RouteRemovedChange,
                // but it happens when removing a sibling route. Fix this inconsistency.
                GraphEdge edge = getEdgeForRemovedRoute(route, from, to);
                // TODO: edge may be null here if a Script that launches another Operation is removed.
                // This is another unfortunate side effect of the current event notification system
                if (edge != null) {
                    eventSupport.fireNodesDisconnected(edge);
                }
View Full Code Here

                }
            }
        }
       
        private GraphEdge getEdgeForRemovedRoute(Route route, OperationWrapperNode from, AbstractGraphNode to) {
            GraphEdge edge = null;
            if (route.getSourceActivity() != null) {
                edge = getEdgeForRemovedScriptSourceRoute(route, from, to);
            } else {
                edge = getEdgeForRemovedOperationActivityRoute(route, from, to);
            }
View Full Code Here

            updateCanvas();
        }

        @Override
        public void nodesConnected(NodesConnectedEvent evt) {
            GraphEdge edge = evt.getNewEdge();
            createUiForEdge(edge);
            layout.nodesConnected(evt);
            updateCanvas();
        }
View Full Code Here

            updateCanvas();
        }

        @Override
        public void nodesDisconnected(NodesDisconnectedEvent evt) {
            GraphEdge edge = evt.getRemovedEdge();
            edgeUis.remove(edge);
            updateCanvas();
        }
View Full Code Here

            @Override
            public void dragOver(DropTargetDragEvent dtde) {
                Point p = adjustPointForZoom(dtde.getLocation());
                Object node = getNodeAt(p);
                GraphEdge edge = getEdgeAt(p);
                if (node == null && edge == null) {
                    reset();
                    checkCanvasDrop(dtde);
                } else if (node != null && edge != null) {
                    if (isNodeAboveEdge(node, edge)) {
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.graph.edge.GraphEdge

Copyright © 2018 www.massapicom. 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.