public class CMYKColorFormat extends TupleColorFormat
Name | CMYKColorFormat | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Format |
|
|||||||||||||||||||||||||||||||||||||||||||||
Description |
|
|||||||||||||||||||||||||||||||||||||||||||||
Example of valid values | *
|
|||||||||||||||||||||||||||||||||||||||||||||
Notes |
|
|||||||||||||||||||||||||||||||||||||||||||||
Links |
TupleColorFormat
,
http://www.rapidtables.com/convert/color/cmyk-to-rgb.htm,
http://www.rapidtables.com/convert/color/rgb-to-cmyk.htm,
http://en.wikipedia.org/wiki/CMYK_color_model,
Serialized Formlogger
Constructor and Description |
---|
CMYKColorFormat() |
Modifier and Type | Method and Description |
---|---|
String |
format(Color color)
Formats the color to a string representation of this format.
|
String |
getColorMethodName()
The method name which identifies the color method (aka rgb, rgba, hsl, hsla etc.)
|
boolean |
isAlphaSupported()
Do the implemtation supports Alpha (opacity).
|
Color |
parse(String text)
Parse a text string to a Color.
|
formatColorMethod, formatTuples, getLogger, getMethodTokens, isOfColorMethodFormat, limitsValue, limitsValue, limitsValue, parseFloatToken, parseIntToken, parsePercentageToken, parseRGBToken, validateRange
public String format(Color color) throws NullPointerException
ColorFormat
color
- the color.NullPointerException
- if color is null
.public String getColorMethodName()
TupleColorFormat
getColorMethodName
in class TupleColorFormat
public boolean isAlphaSupported()
ColorFormat
true
if the ColorFormat supports Alpha, otherwise false
.public Color parse(String text) throws ColorFormatException
ColorFormat
text
- a text string with the color format.ColorFormatException
- if the text is null
or can not be parse by this format.Color