com.thecoderscorner.menu.domain.Rgb32MenuItemBuilder Maven / Gradle / Ivy
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