Package org.gephi.preview.util.color

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


     */
    public NodeImpl(GraphImpl parent, float x, float y, float radius, String label, float labelSize, float r, float g, float b) {
        this.parent = parent;
        this.position = new PointImpl(x, y);
        this.radius = radius;
        this.originalColor = new SimpleColor(r, g, b, 0);
        if (label != null) {
            this.label = new NodeLabelImpl(this, label, labelSize);
            this.labelBorder = new NodeLabelBorderImpl(this);
        } else {
            this.label = null;
View Full Code Here


     * @param client  the client to color
     */
    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

     * @param client  the client to color
     */
    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

     * @param r  the red color component
     * @param g  the green color component
     * @param b  the blue color component
     */
    public CustomColorMode(int r, int g, int b) {
        color = new SimpleColor(r, g, b);
    }
View Full Code Here

TOP

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

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.