public class WebColorConverter extends DefaultObjectConverter<javafx.scene.paint.Color> implements ColorConverter
CONTEXT_HEX, CONTEXT_HEX_WITH_ALPHA, CONTEXT_RGB, CONTEXT_RGBA, CONTEXT_WEB| Constructor and Description |
|---|
WebColorConverter() |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.paint.Color |
fromString(java.lang.String s,
ConverterContext context)
Return null in most cases unless the generic type T is also a String.
|
static java.util.Map<javafx.scene.paint.Color,java.lang.String> |
getColorNameMap() |
java.lang.String |
toString(javafx.scene.paint.Color color,
ConverterContext context)
Converts the value to String.
|
fromString, getObjectConverterManager, toString, toStringConverterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringConverterpublic static java.util.Map<javafx.scene.paint.Color,java.lang.String> getColorNameMap()
public java.lang.String toString(javafx.scene.paint.Color color,
ConverterContext context)
DefaultObjectConvertertoString in interface ObjectConverter<javafx.scene.paint.Color>toString in class DefaultObjectConverter<javafx.scene.paint.Color>color - the value to be concerted.context - converter context to be usedpublic javafx.scene.paint.Color fromString(java.lang.String s,
ConverterContext context)
DefaultObjectConverterfromString in interface ObjectConverter<javafx.scene.paint.Color>fromString in class DefaultObjectConverter<javafx.scene.paint.Color>s - the stringcontext - context to be converted