public class CustomColor extends Object implements IGuiColor
IGuiColor
color with a builder that supports whatever color fields were added during the build
process.Modifier and Type | Class and Description |
---|---|
static class |
CustomColor.Builder
Simple builder for a
CustomColor . |
Modifier and Type | Method and Description |
---|---|
static CustomColor.Builder |
builder() |
boolean |
equals(Object obj) |
<T extends Serializable> |
getField(IColorField<T> field)
Finds the value of the given color palette field.
|
com.google.common.collect.ImmutableSet<IColorField<?>> |
getSupportedFields() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getStyleBackground, getStyleClassBackground, getStyleClassTextOnWhite, getStyleTextOnWhite, supportsField
public <T extends Serializable> T getField(IColorField<T> field) throws IllegalArgumentException
IGuiColor
getField
in interface IGuiColor
T
- Type of the field value.field
- A field to retrieve.IllegalArgumentException
- If the given field is not supported, see EColorPalette.supportsField(de.xima.fc.gui.common.interfaces.IColorField<?>)
.public com.google.common.collect.ImmutableSet<IColorField<?>> getSupportedFields()
getSupportedFields
in interface IGuiColor
IGuiColor.supportsField(IColorField)
public static CustomColor.Builder builder()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.