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

com.dlsc.gemsfx.demo.fake.WeatherCondition Maven / Gradle / Ivy

There is a newer version: 2.67.0
Show newest version
package com.dlsc.gemsfx.demo.fake;

import javafx.scene.image.Image;

public enum WeatherCondition {
    
    CLOUDY("Cloudy", ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Cloudy.png")),
    PARTIALLY_CLOUDY("Partially\nCloudy", ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/PartiallyCloudy.png")),
    RAINY("Rainy",ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Rainy.png")),
    SNOWY("Snowy",ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Snowy.png")),
    STORMY("Stormy",ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Stormy.png")),
    SUNNY("Sunny",ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Sunny.png")),
    WINDY("Windy",ResourcesUtil.loadImage("/com/dlsc/gemsfx/demo/fake/Windy.png"));

    private final String desc;
    private final Image image;

    WeatherCondition(String desc, Image image) {
        this.desc = desc;
        this.image = image;
    }

    public String getDesc() {
        return desc;
    }

    public Image getImage() {
        return image;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy