public class RainbowHighlighter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Boolean |
DEFAULT_RAINBOW_ON |
static TextAttributesKey |
RAINBOW_ANCHOR |
static TextAttributesKey[] |
RAINBOW_COLOR_KEYS |
static HighlightInfoType |
RAINBOW_ELEMENT |
static TextAttributesKey |
RAINBOW_GRADIENT_DEMO |
static java.lang.String |
RAINBOW_TYPE |
Constructor and Description |
---|
RainbowHighlighter(TextAttributesScheme colorsScheme) |
Modifier and Type | Method and Description |
---|---|
static double |
colorDistance01(java.awt.Color c1,
java.awt.Color c2) |
static TextAttributes |
createRainbowAttribute(java.awt.Color color) |
static java.util.Map<java.lang.String,TextAttributesKey> |
createRainbowHLM() |
static java.lang.String |
generatePaletteExample(java.lang.String indent) |
int |
getColorsCount() |
HighlightInfo |
getInfo(int colorIndex,
int start,
int end,
TextAttributesKey colorKey) |
HighlightInfo |
getInfo(int colorIndex,
PsiElement id,
TextAttributesKey colorKey) |
TextAttributesKey [] |
getRainbowTempKeys() |
static java.lang.Boolean |
isRainbowEnabled(TextAttributesScheme colorsScheme,
Language language) |
static boolean |
isRainbowEnabledWithInheritance(TextAttributesScheme colorsScheme,
Language language) |
static boolean |
isRainbowKey(java.lang.Object key) |
static boolean |
isRainbowTempKey(TextAttributesKey key) |
static void |
setRainbowEnabled(SchemeMetaInfo colorsScheme,
Language language,
java.lang.Boolean enabled) |
static java.awt.Color [] |
testRainbowGenerateColors(TextAttributesScheme colorsScheme) |
static void |
transferRainbowState(SchemeMetaInfo dst,
SchemeMetaInfo src) |
public static final TextAttributesKey[] RAINBOW_COLOR_KEYS
public static final java.lang.String RAINBOW_TYPE
public static final TextAttributesKey RAINBOW_ANCHOR
public static final TextAttributesKey RAINBOW_GRADIENT_DEMO
public static final java.lang.Boolean DEFAULT_RAINBOW_ON
public static final HighlightInfoType RAINBOW_ELEMENT
public RainbowHighlighter(TextAttributesScheme colorsScheme)
public static java.lang.Boolean isRainbowEnabled(TextAttributesScheme colorsScheme, Language language)
public static boolean isRainbowEnabledWithInheritance(TextAttributesScheme colorsScheme, Language language)
public static void setRainbowEnabled(SchemeMetaInfo colorsScheme, Language language, java.lang.Boolean enabled)
public static boolean isRainbowKey(java.lang.Object key)
public static void transferRainbowState(SchemeMetaInfo dst, SchemeMetaInfo src)
public static java.lang.String generatePaletteExample(java.lang.String indent)
public int getColorsCount()
public static java.awt.Color [] testRainbowGenerateColors(TextAttributesScheme colorsScheme)
public static double colorDistance01(java.awt.Color c1, java.awt.Color c2)
public TextAttributesKey [] getRainbowTempKeys()
public static boolean isRainbowTempKey(TextAttributesKey key)
public HighlightInfo getInfo(int colorIndex, PsiElement id, TextAttributesKey colorKey)
public HighlightInfo getInfo(int colorIndex, int start, int end, TextAttributesKey colorKey)
public static TextAttributes createRainbowAttribute(java.awt.Color color)
public static java.util.Map<java.lang.String,TextAttributesKey> createRainbowHLM()