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

com.thecoderscorner.menu.domain.Rgb32MenuItemBuilder Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package com.thecoderscorner.menu.domain;

public class Rgb32MenuItemBuilder extends MenuItemBuilder {
    private boolean alpha = false;

    @Override
    Rgb32MenuItemBuilder getThis() {
        return this;
    }

    public Rgb32MenuItemBuilder withAlpha(boolean alpha) {
        this.alpha = alpha;
        return getThis();
    }

    public Rgb32MenuItemBuilder withExisting(Rgb32MenuItem item) {
        baseFromExisting(item);
        alpha = item.isIncludeAlphaChannel();
        return getThis();
    }

    public Rgb32MenuItem menuItem() {
        return new Rgb32MenuItem(name, variableName, id, eepromAddr, functionName, alpha, readOnly, localOnly, visible);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy