Package org.gephi.preview.util.color

Examples of org.gephi.preview.util.color.MixedColor


     * Colors the given client.
     *
     * @param client  the client to color
     */
    public void color(EdgeColorizerClient client) {
        client.setColor(new MixedColor(
                client.getNode1().getColorHolder(),
                client.getNode2().getColorHolder()));
    }
View Full Code Here


     * Colors the given client.
     *
     * @param client  the client to color
     */
    public void color(EdgeChildColorizerClient client) {
        client.setColor(new MixedColor(
                client.getParentEdge().getNode1().getColorHolder(),
                client.getParentEdge().getNode2().getColorHolder()));
    }
View Full Code Here

    public void color(EdgeColorizerClient client) {
        java.awt.Color c = client.getOriginalColor();
        if (c != null) {
            client.setColor(new SimpleColor(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()));
        } else {
            client.setColor(new MixedColor(
                    client.getNode1().getColorHolder(),
                    client.getNode2().getColorHolder()));
            ;
        }
    }
View Full Code Here

    public void color(EdgeChildColorizerClient client) {
        java.awt.Color c = client.getParentEdge().getOriginalColor();
        if (c != null) {
            client.setColor(new SimpleColor(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()));
        } else {
            client.setColor(new MixedColor(
                    client.getParentEdge().getNode1().getColorHolder(),
                    client.getParentEdge().getNode2().getColorHolder()));
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.preview.util.color.MixedColor

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.