Examples of JPowerGraphColor


Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

   
    private JPowerGraphColor normal;
    private JPowerGraphColor highlighted;

    public ClusterEdgePainter (){
        normal = new JPowerGraphColor(246, 246, 246);
        highlighted = new JPowerGraphColor(197, 197, 197);
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

        JPowerGraphPoint to = graphPane.getScreenPointForNode(edge.getTo());
       
        JPowerGraphRectangle nodeRectangle = new JPowerGraphRectangle(0, 0, 0, 0);
        graphPane.getNodeScreenBounds(edge.getTo(), nodeRectangle);
       
        JPowerGraphColor oldBGColor = g.getBackground();
        JPowerGraphColor oldFGColor = g.getForeground();
        g.setBackground(normal);
        g.setForeground(highlighted);
        paintArrow(g,from.x,from.y,to.x,to.y, nodeRectangle);
        g.setBackground(oldBGColor);
        g.setForeground(oldFGColor);
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

    public LineEdgePainter(){
        this(JPowerGraphColor.RED, JPowerGraphColor.GREEN, false);
    }
   
    public LineEdgePainter(JPowerGraphColor dragging, JPowerGraphColor normal, boolean isDashedLine){
        this(new JPowerGraphColor(197, 197, 197), dragging, normal, isDashedLine);
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

    }
   
    public void paintEdge(JGraphPane graphPane, JPowerGraphGraphics g, T edge, SubGraphHighlighter theSubGraphHighlighter) {
        JPowerGraphPoint from = graphPane.getScreenPointForNode(edge.getFrom());
        JPowerGraphPoint to = graphPane.getScreenPointForNode(edge.getTo());
        JPowerGraphColor oldFGColor = g.getForeground();
        JPowerGraphColor oldBGColor = g.getBackground();
       
        g.setForeground(getEdgeColor(edge, graphPane, false, theSubGraphHighlighter));
        g.setBackground(getEdgeColor(edge, graphPane, false, theSubGraphHighlighter));
        paintArrow(g, from.x, from.y, to.x, to.y, dashedLine);
        g.setForeground(oldFGColor);
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

                height += dimension.height;
            }
        }
        JPowerGraphRectangle legendRectangle = new JPowerGraphRectangle(10, graphPane.getHeight() - (height + 10), width, height);
       
        JPowerGraphColor oldColor = g.getForeground();
        g.setForeground(white);
        g.fillRoundRectangle(legendRectangle.x, legendRectangle.y, legendRectangle.width, legendRectangle.height, 10, 10);
        g.setForeground(black);
        g.drawRoundRectangle(legendRectangle.x, legendRectangle.y, legendRectangle.width, legendRectangle.height, 10, 10);
        g.setForeground(oldColor);
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

    public LoopEdgePainter(){
        this(JPowerGraphColor.RED, JPowerGraphColor.YELLOW, CIRCULAR);
    }
   
    public LoopEdgePainter(JPowerGraphColor dragging, JPowerGraphColor normal, int theShape){
        this(new JPowerGraphColor(197, 197, 197), dragging, normal, theShape);
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

   
    public void paintEdge(JGraphPane graphPane, JPowerGraphGraphics g, T edge, SubGraphHighlighter theSubGraphHighlighter) {
        JPowerGraphRectangle r = new JPowerGraphRectangle(0, 0, 0, 0);
        getEdgeScreenBounds(graphPane, edge, r);

        JPowerGraphColor oldFGColor = g.getForeground();
        JPowerGraphColor oldBGColor = g.getBackground();       
        g.setForeground(getEdgeColor(edge,graphPane, false, theSubGraphHighlighter));
        g.setBackground(getEdgeColor(edge,graphPane, false, theSubGraphHighlighter));
        paintArrow(g, r.x, r.y, r.width, r.height, shape);
        g.setForeground(oldFGColor);
        g.setBackground(oldBGColor);
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

    private JPowerGraphColor notHighlighted;
    private JPowerGraphColor normal;
    private JPowerGraphColor highlighted;
   
    public ArrowEdgePainter (){
        notHighlighted = new JPowerGraphColor(197, 197, 197);
        normal = JPowerGraphColor.GRAY;
        highlighted = JPowerGraphColor.RED;
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

        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);
        g.setBackground(color);
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.swtswinginteraction.color.JPowerGraphColor

        this.shape = theShape;
        this.backgroundColor = theBackgroundColor;
        this.borderColor = theBorderColor;
        this.textColor = theTextColor;

        this.notHighlightedBackgroundColor = new JPowerGraphColor(246, 246, 246);
        this.notHighlightedBorderColor = new JPowerGraphColor(197, 197, 197);
        this.notHighlightedTextColor = new JPowerGraphColor(197, 197, 197);
    }
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.