Example usage for javafx.scene.paint Color LIGHTGREY

List of usage examples for javafx.scene.paint Color LIGHTGREY

Introduction

In this page you can find the example usage for javafx.scene.paint Color LIGHTGREY.

Prototype

Color LIGHTGREY

To view the source code for javafx.scene.paint Color LIGHTGREY.

Click Source Link

Document

The color light grey with an RGB value of #D3D3D3

Usage

From source file:de.pixida.logtest.designer.automaton.AutomatonNode.java

private void updateRect() {
    String title = "";
    if (this.type == Type.INITIAL) {
        this.setColor(Color.BLUE.desaturate().desaturate().desaturate().desaturate().brighter().brighter());
        title += "INITIAL ";
    } else if (this.type == Type.SUCCESS) {
        this.setColor(Color.GREEN.desaturate().desaturate().desaturate().desaturate().brighter().brighter());
        title += "SUCCESS ";
    } else if (this.type == Type.FAILURE) {
        this.setColor(Color.RED.desaturate().desaturate().desaturate().desaturate().brighter().brighter());
        title += "FAILURE ";
    } else {//from   w  w w . j  a v  a 2  s . com
        this.setColor(Color.LIGHTGREY);
    }
    title += "State";
    if (this.wait) {
        title += " | wait!";
    }
    this.setTitle(title);
}