All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.gv.atts.GvNodeStyle Maven / Gradle / Ivy

There is a newer version: 0.100.2
Show newest version
package cdc.gv.atts;

import cdc.gv.support.GvEncodable;

/**
 * Enumeration of possible node styles.
 *
 * @author Damien Carbonne
 *
 */
public enum GvNodeStyle implements GvEncodable {
    BOLD,
    DASHED,
    DIAGONALS,
    DOTTED,
    FILLED,
    INVIS,
    RADIAL,
    ROUNDED,
    SOLID,
    STRIPED,
    WEDGED;

    public boolean supportsColorList() {
        switch (this) {
        case FILLED:
        case RADIAL:
        case STRIPED:
        case WEDGED:
            return true;
        default:
            return false;
        }
    }

    @Override
    public String encode() {
        return name().toLowerCase();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy