Package de.xima.fc.gui.common.model
Class CustomColor
java.lang.Object
de.xima.fc.gui.common.model.CustomColor
- All Implemented Interfaces:
 IGuiColor,Serializable
A custom 
IGuiColor color with a builder that supports whatever color fields were added during the build
 process.- Since:
 - 6.5.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionstatic CustomColor.Builderbuilder()boolean<T extends Serializable>
TgetField(IColorField<T> field) Finds the value of the given color palette field.com.google.common.collect.ImmutableSet<IColorField<?>>inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.color.IGuiColor
getStyleBackground, getStyleClassBackground, getStyleClassTextOnWhite, getStyleTextOnWhite, supportsField 
- 
Method Details
- 
equals
 - 
getField
Description copied from interface:IGuiColorFinds the value of the given color palette field.- Specified by:
 getFieldin interfaceIGuiColor- Type Parameters:
 T- Type of the field value.- Parameters:
 field- A field to retrieve.- Returns:
 - The value of this color palette entry for the given field.
 - Throws:
 IllegalArgumentException- If the given field is not supported, seeEColorPalette#supportsField.
 - 
getSupportedFields
- Specified by:
 getSupportedFieldsin interfaceIGuiColor- Returns:
 - All fields supported by this color.
 - See Also:
 
 - 
hashCode
public int hashCode() - 
toString
 - 
builder
- Returns:
 - A new builder for a custom color.
 
 
 -