Package org.apache.ivyde.eclipse.resolvevisualizer.label

Examples of org.apache.ivyde.eclipse.resolvevisualizer.label.ConnectionStyle


    private Color rootSelectedColor;

    public IvyNodeLabelProvider(GraphViewer viewer) {
        this.viewer = viewer;
        this.rootDirectDependenciesDecorator.setStyles(new Color(Display.getDefault(), 197, 237, 197),
                new ConnectionStyle(ZestStyles.CONNECTIONS_SOLID, new Color(Display.getDefault(), 175, 175, 175), 1,
                        false));
    }
View Full Code Here


    /**
     * Colors all connections regardless of their selection status.
     */
    public Color getColor(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            return style.getHighlightColor();
        }
        return LIGHT_GRAY;
    }
View Full Code Here

     * Colors "highlighted" relationships. We want to differentiate between those highlighted programatically by the
     * auto-select mechanism, and those hand-selected by the user.
     */
    public Color getHighlightColor(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            return style.getHighlightColor();
        }
        return ColorConstants.blue;
    }
View Full Code Here

        return null;
    }

    public int getLineWidth(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            if (style.isRevealOnHighlight()) {
                return style.getLineWidth();
            }
        }
        return 1;
    }
View Full Code Here

     */
    public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.unReveal(entityConnectionData);
            }
        }

        this.rootNode = root;
        this.selected = null;
        this.selected = currentSelection;

        highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
        highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();

        rootDirectDependenciesDecorator.calculateHighlighted(root, root, highlightedRelationships,
                highlightedDependencies);
        conflictDecorator.calculateHighlighted(root, root, highlightedRelationships, highlightedDependencies);

        if (this.selected != null || this.pinnedNode != null) {
            autoSelectDecorator.calculateHighlighted(root, selected, highlightedRelationships, highlightedDependencies);
        }

        Object[] connections = viewer.getConnectionElements();
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            Object entityConnectionData = iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.reveal(entityConnectionData);
            }
        }

        for (int i = 0; i < connections.length; i++) {
View Full Code Here

    private Color rootSelectedColor;

    public IvyNodeLabelProvider(GraphViewer viewer) {
        this.viewer = viewer;
        this.rootDirectDependenciesDecorator.setStyles(new Color(Display.getDefault(), 197, 237, 197),
                new ConnectionStyle(ZestStyles.CONNECTIONS_SOLID, new Color(Display.getDefault(), 175, 175, 175), 1,
                        false));
    }
View Full Code Here

    /**
     * Colors all connections regardless of their selection status.
     */
    public Color getColor(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            return style.getHighlightColor();
        }
        return LIGHT_GRAY;
    }
View Full Code Here

     * Colors "highlighted" relationships. We want to differentiate between those highlighted programatically by the
     * auto-select mechanism, and those hand-selected by the user.
     */
    public Color getHighlightColor(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            return style.getHighlightColor();
        }
        return ColorConstants.blue;
    }
View Full Code Here

        return null;
    }

    public int getLineWidth(Object rel) {
        if (highlightedRelationships.keySet().contains(rel)) {
            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
            if (style.isRevealOnHighlight()) {
                return style.getLineWidth();
            }
        }
        return 1;
    }
View Full Code Here

     */
    public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.unReveal(entityConnectionData);
            }
        }

        this.rootNode = root;
        this.selected = null;
        this.selected = currentSelection;

        highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
        highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();

        rootDirectDependenciesDecorator.calculateHighlighted(root, root, highlightedRelationships,
                highlightedDependencies);
        conflictDecorator.calculateHighlighted(root, root, highlightedRelationships, highlightedDependencies);

        if (this.selected != null || this.pinnedNode != null) {
            autoSelectDecorator.calculateHighlighted(root, selected, highlightedRelationships, highlightedDependencies);
        }

        Object[] connections = viewer.getConnectionElements();
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            Object entityConnectionData = iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.reveal(entityConnectionData);
            }
        }

        for (int i = 0; i < connections.length; i++) {
View Full Code Here

TOP

Related Classes of org.apache.ivyde.eclipse.resolvevisualizer.label.ConnectionStyle

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.