public class ColorToolTipTextFormatter extends ColorFormatter
ColorFormatter
is used to format colors into a textual representation
which can be displayed as a tooltip.
By default, the formatter is adaptive, meaning that the format depends
on the ColorSpace
of the current Color
value.
ColorFormatter.Format
allowsNullValue, grayPercentagePattern, hsbPercentagePattern, isAdaptive, lastUsedInputFormat, numberFormat, outputFormat, prefs, rgbHexPattern, rgbIntegerPattern, rgbIntegerShortPattern, rgbPercentagePattern
Constructor and Description |
---|
ColorToolTipTextFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
valueToString(java.lang.Object value) |
createFormatterFactory, createFormatterFactory, getAllowsNullValue, getLastUsedInputFormat, getOutputFormat, isAdaptive, setAdaptive, setAllowsNullValue, setOutputFormat, stringToValue
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
public java.lang.String valueToString(java.lang.Object value) throws java.text.ParseException
valueToString
in class ColorFormatter
java.text.ParseException