Package de.xima.fc.color
Class ColorField<T extends Serializable>
java.lang.Object
de.xima.fc.color.ColorField<T>
- Type Parameters:
T- Type of the property value.
- All Implemented Interfaces:
IColorField<T>,Serializable,Comparable<IColorField<?>>
List of common
IColorFields.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConstants with theIColorField.getIdentifier()values for theColorFields. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IColorField<CssColor>CSS property for the color, such asredor#ac3300.static final IColorField<CssColor>CSS property for the color matching the the background, such asredor#ac3300.static final IColorField<Integer>The hue component of a HSLuv color (0 to 360).static final IColorField<Integer>The lightness component of a HSLuv color (0 to 100).static final IColorField<Integer>The saturation component of a HSLuv color (0 to 100).static final IColorField<HslUvTriplet>The HSLuv compoments of the color.static final IColorField<Integer>The hue component of the HSV value of the color (0 to 360).static final IColorField<Integer>The saturation component of the HSV value of the color (0 to 00).static final IColorField<Integer>The value component of the HSV value of the color (0 to 100).static final IColorField<HsvTriplet>The RGB compoments of the color.static final IColorField<Double>The luminance according to Photometric/digital ITU BT.601 standard, from 0 to 1.static final IColorField<Double>The luminance according to Photometric/digital ITU BT.709 standard, from 0 to 1.static final IColorField<Double>The opacity component of the color, from 0 (transparent) to 1 (opaque).static final IColorField<Integer>The blue component of the RGB value of the color (0 to 255).static final IColorField<Integer>The green component of the RGB value of the color (0 to 255).static final IColorField<Integer>The red component of the RGB value of the color (0 to 255).static final IColorField<RgbTriplet>The RGB compoments of the color.static final IColorField<String>CSS style class for setting the background color.static final IColorField<String>CSS style class for setting the background color.static final IColorField<String>CSS style class for setting the fill color (SVG).static final IColorField<String>CSS style class for setting the text color to a color matching theSTYLE_CLASS_BACKGROUND.static final IColorField<String>CSS style class for setting the text color to a color matching theSTYLE_CLASS_BACKGROUND.static final IColorField<String>CSS style class for setting the stroke color (SVG).static final IColorField<String>CSS style class for setting the text color.static final IColorField<Double>The alpha or transparency component of the color, from 0 (opaque) to 1 (transparent). -
Method Summary
Modifier and TypeMethodDescriptionbooleanImplementations MUST make the comparison only with respect toIColorField.getIdentifier().inthashCode()Implementations MUST calculate the hash code only from theIColorField.getIdentifier().toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.color.IColorField
compareTo, get, get, supportedBy
-
Field Details
-
CSS_COLOR
CSS property for the color, such asredor#ac3300. -
CSS_COLOR_MATCHING_TEXT
CSS property for the color matching the the background, such asredor#ac3300. -
HSLUV_COMPONENT_HUE
The hue component of a HSLuv color (0 to 360). -
HSLUV_COMPONENT_LIGHTNESS
The lightness component of a HSLuv color (0 to 100). -
HSLUV_COMPONENT_SATURATION
The saturation component of a HSLuv color (0 to 100). -
HSLUV_TRIPLET
The HSLuv compoments of the color. -
HSV_COMPONENT_HUE
The hue component of the HSV value of the color (0 to 360). -
HSV_COMPONENT_SATURATION
The saturation component of the HSV value of the color (0 to 00). -
HSV_COMPONENT_VALUE
The value component of the HSV value of the color (0 to 100). -
HSV_TRIPLET
The RGB compoments of the color. -
LUMA_ITU_BT_601
The luminance according to Photometric/digital ITU BT.601 standard, from 0 to 1. -
LUMA_ITU_BT_709
The luminance according to Photometric/digital ITU BT.709 standard, from 0 to 1. -
OPACITY
The opacity component of the color, from 0 (transparent) to 1 (opaque). -
RGB_COMPONENT_BLUE
The blue component of the RGB value of the color (0 to 255). -
RGB_COMPONENT_GREEN
The green component of the RGB value of the color (0 to 255). -
RGB_COMPONENT_RED
The red component of the RGB value of the color (0 to 255). -
RGB_TRIPLET
The RGB compoments of the color. -
STYLE_CLASS_BACKGROUND
CSS style class for setting the background color. -
STYLE_CLASS_BORDER
CSS style class for setting the background color. -
STYLE_CLASS_FILL
CSS style class for setting the fill color (SVG). -
STYLE_CLASS_MATCHING_BORDER
CSS style class for setting the text color to a color matching theSTYLE_CLASS_BACKGROUND. -
STYLE_CLASS_MATCHING_TEXT
CSS style class for setting the text color to a color matching theSTYLE_CLASS_BACKGROUND. -
STYLE_CLASS_STROKE
CSS style class for setting the stroke color (SVG). -
STYLE_CLASS_TEXT
CSS style class for setting the text color. -
TRANSPARENCY
The alpha or transparency component of the color, from 0 (opaque) to 1 (transparent).
-
-
Method Details
-
equals
Description copied from interface:IColorFieldImplementations MUST make the comparison only with respect toIColorField.getIdentifier().- Specified by:
equalsin interfaceIColorField<T extends Serializable>- Overrides:
equalsin classObject- Parameters:
obj- Other object to compare this object to.- Returns:
- Whether this object equals the given object.
-
getIdentifier
- Specified by:
getIdentifierin interfaceIColorField<T extends Serializable>- Returns:
- Unique identifier of this color field.
-
hashCode
public int hashCode()Description copied from interface:IColorFieldImplementations MUST calculate the hash code only from theIColorField.getIdentifier().- Specified by:
hashCodein interfaceIColorField<T extends Serializable>- Overrides:
hashCodein classObject- Returns:
- The hash code of this object.
-
toString
-