public class ColorUtils extends Object
| Constructor and Description |
|---|
ColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.lsp4j.Color |
getColorValue(String text)
Returns the
Color instance value from the given text and
null otherwise. |
static int |
hexDigit(int charCode) |
static org.eclipse.lsp4j.ColorPresentation |
toHexa(org.eclipse.lsp4j.Color color,
org.eclipse.lsp4j.Range replace)
Returns the Hexa color presentation of the given
color and
replace range. |
static org.eclipse.lsp4j.ColorPresentation |
toRGB(org.eclipse.lsp4j.Color color,
org.eclipse.lsp4j.Range replace)
Returns the RGB color presentation of the given
color and
replace range. |
public static org.eclipse.lsp4j.Color getColorValue(String text)
Color instance value from the given text and
null otherwise.text - the color text.Color instance value from the given text and
null otherwise.public static org.eclipse.lsp4j.ColorPresentation toRGB(org.eclipse.lsp4j.Color color,
org.eclipse.lsp4j.Range replace)
color and
replace range.color - the color.replace - the replace range.color and
range.public static org.eclipse.lsp4j.ColorPresentation toHexa(org.eclipse.lsp4j.Color color,
org.eclipse.lsp4j.Range replace)
color and
replace range.color - the color.replace - the replace range.color and
range.public static int hexDigit(int charCode)
Copyright © 2023. All rights reserved.