Examples of DraggingManipulator


Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

        theJGraphPane.getSubGraphHighlighter().setSubGraph(getSubGraph(nodeSelectionModel.getSelectedNodes()));
      }
    });

    theJGraphPane.addManipulator(new SelectionManipulator(nodeSelectionModel));
    theJGraphPane.addManipulator(new DraggingManipulator((CursorLens) getLensSet().getFirstLensOfType(CursorLens.class)));
    theJGraphPane.addManipulator(new EdgeCreatorManipulator((CursorLens) getLensSet().getFirstLensOfType(CursorLens.class), new DefaultEdgeCreatorListener(theJGraphPane.getGraph())));
    theJGraphPane.addManipulator(new PopupManipulator(theJGraphPane, (TooltipLens) getLensSet().getFirstLensOfType(TooltipLens.class)));
  }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

                theJGraphPane.getSubGraphHighlighter().setSubGraph(getSubGraph(nodeSelectionModel.getSelectedNodes()));
            }
        });
       
        theJGraphPane.addManipulator(new SelectionManipulator(nodeSelectionModel));
        theJGraphPane.addManipulator(new DraggingManipulator((CursorLens) getLensSet().getFirstLensOfType(CursorLens.class)));
        theJGraphPane.addManipulator(new EdgeCreatorManipulator((CursorLens) getLensSet().getFirstLensOfType(CursorLens.class), new DefaultEdgeCreatorListener(theJGraphPane.getGraph())));
        theJGraphPane.addManipulator(new PopupManipulator(theJGraphPane, (TooltipLens) getLensSet().getFirstLensOfType(TooltipLens.class)));
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }

    public JPowerGraphColor getBorderColor(Node theNode, JGraphPane theGraphPane, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = null;
        SelectionManipulator selectionManipulator = null;
        DraggingManipulator draggingManipulator = null;
        if (theGraphPane != null){
            highlightingManipulator = (HighlightingManipulator) theGraphPane.getManipulator(HighlightingManipulator.NAME);
            selectionManipulator = (SelectionManipulator) theGraphPane.getManipulator(SelectionManipulator.NAME);
            draggingManipulator = (DraggingManipulator) theGraphPane.getManipulator(DraggingManipulator.NAME);
        }
       
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedNode() == theNode;
        boolean isSelected = selectionManipulator != null && selectionManipulator.getNodeSelectionModel().isNodeSelected(theNode);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedNode() == theNode;
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(theNode);
       
        if (notHighlightedBecauseOfSubGraph) {
            return notHighlightedBorderColor;
        }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }
   
    public JPowerGraphColor getBackgroundColor(Node theNode, JGraphPane theGraphPane, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = null;
        SelectionManipulator selectionManipulator = null;
        DraggingManipulator draggingManipulator = null;
        if (theGraphPane != null){
            highlightingManipulator = (HighlightingManipulator) theGraphPane.getManipulator(HighlightingManipulator.NAME);
            selectionManipulator = (SelectionManipulator) theGraphPane.getManipulator(SelectionManipulator.NAME);
            draggingManipulator = (DraggingManipulator) theGraphPane.getManipulator(DraggingManipulator.NAME);
        }
       
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedNode() == theNode;
        boolean isSelected = selectionManipulator != null && selectionManipulator.getNodeSelectionModel().isNodeSelected(theNode);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedNode() == theNode;
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(theNode);
       
        if (notHighlightedBecauseOfSubGraph) {
            return notHighlightedBackgroundColor;
        }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }

    public JPowerGraphColor getTextColor(Node theNode, JGraphPane theGraphPane, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = null;
        SelectionManipulator selectionManipulator = null;
        DraggingManipulator draggingManipulator = null;
        if (theGraphPane != null){
            highlightingManipulator = (HighlightingManipulator) theGraphPane.getManipulator(HighlightingManipulator.NAME);
            selectionManipulator = (SelectionManipulator) theGraphPane.getManipulator(SelectionManipulator.NAME);
            draggingManipulator = (DraggingManipulator) theGraphPane.getManipulator(DraggingManipulator.NAME);
        }
       
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedNode() == theNode;
        boolean isSelected = selectionManipulator != null && selectionManipulator.getNodeSelectionModel().isNodeSelected(theNode);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedNode() == theNode;
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(theNode);
       
        if (notHighlightedBecauseOfSubGraph) {
            return notHighlightedTextColor;
        }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }
   
    protected JPowerGraphColor getEdgeColor(Edge edge, JGraphPane graphPane, boolean isShowBlackAndWhite, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = (HighlightingManipulator) graphPane.getManipulator(HighlightingManipulator.NAME);
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedEdge() == edge;
        DraggingManipulator draggingManipulator = (DraggingManipulator) graphPane.getManipulator(DraggingManipulator.NAME);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedEdge() == edge;
       
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(edge);
        if (isShowBlackAndWhite || notHighlightedBecauseOfSubGraph)
            return edgeColor1;
        else if (isHighlighted || isDragging)
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }
   
    protected JPowerGraphColor getEdgeColor(Edge edge, JGraphPane graphPane, boolean isShowBlackAndWhite, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = (HighlightingManipulator)graphPane.getManipulator(HighlightingManipulator.NAME);
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedEdge() == edge;
        DraggingManipulator draggingManipulator = (DraggingManipulator)graphPane.getManipulator(DraggingManipulator.NAME);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedEdge() == edge;
       
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(edge);
        if (isShowBlackAndWhite || notHighlightedBecauseOfSubGraph)
            return edgeColor1;
        else if (isHighlighted || isDragging)
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }
   
    public void paintEdge(JGraphPane graphPane, JPowerGraphGraphics g, T edge, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator=(HighlightingManipulator) graphPane.getManipulator(HighlightingManipulator.NAME);
        boolean isHighlighted=highlightingManipulator!=null && highlightingManipulator.getHighlightedEdge()==edge;
        DraggingManipulator draggingManipulator=(DraggingManipulator) graphPane.getManipulator(DraggingManipulator.NAME);
        boolean isDragging=draggingManipulator!=null && draggingManipulator.getDraggedEdge()==edge;
        JPowerGraphPoint from=graphPane.getScreenPointForNode(edge.getFrom());
        JPowerGraphPoint to=graphPane.getScreenPointForNode(edge.getTo());
        JPowerGraphColor color=g.getBackground();
        g.setBackground(getEdgeColor(edge,isHighlighted,isDragging, theSubGraphHighlighter));
        paintArrow(g,from.x,from.y,to.x,to.y);
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

   
   
    public JPowerGraphColor getBorderColor(Node theNode, JGraphPane theGraphPane, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = null;
        SelectionManipulator selectionManipulator = null;
        DraggingManipulator draggingManipulator = null;
        if (theGraphPane != null){
            highlightingManipulator = (HighlightingManipulator) theGraphPane.getManipulator(HighlightingManipulator.NAME);
            selectionManipulator = (SelectionManipulator) theGraphPane.getManipulator(SelectionManipulator.NAME);
            draggingManipulator = (DraggingManipulator) theGraphPane.getManipulator(DraggingManipulator.NAME);
        }
       
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedNode() == theNode;
        boolean isSelected = selectionManipulator != null && selectionManipulator.getNodeSelectionModel().isNodeSelected(theNode);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedNode() == theNode;
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(theNode);
       
        if (notHighlightedBecauseOfSubGraph) {
            return notHighlightedBorderColor;
        }
View Full Code Here

Examples of net.sourceforge.jpowergraph.manipulator.dragging.DraggingManipulator

    }

    public JPowerGraphColor getBackgroundColor(Node theNode, JGraphPane theGraphPane, SubGraphHighlighter theSubGraphHighlighter) {
        HighlightingManipulator highlightingManipulator = null;
        SelectionManipulator selectionManipulator = null;
        DraggingManipulator draggingManipulator = null;
        if (theGraphPane != null){
            highlightingManipulator = (HighlightingManipulator) theGraphPane.getManipulator(HighlightingManipulator.NAME);
            selectionManipulator = (SelectionManipulator) theGraphPane.getManipulator(SelectionManipulator.NAME);
            draggingManipulator = (DraggingManipulator) theGraphPane.getManipulator(DraggingManipulator.NAME);
        }
       
        boolean isHighlighted = highlightingManipulator != null && highlightingManipulator.getHighlightedNode() == theNode;
        boolean isSelected = selectionManipulator != null && selectionManipulator.getNodeSelectionModel().isNodeSelected(theNode);
        boolean isDragging = draggingManipulator != null && draggingManipulator.getDraggedNode() == theNode;
        boolean notHighlightedBecauseOfSubGraph = theSubGraphHighlighter.isHighlightSubGraphs() && !theSubGraphHighlighter.doesSubGraphContain(theNode);
       
        if (notHighlightedBecauseOfSubGraph) {
            return notHighlightedBackgroundColor;
        }
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.