public abstract class ColorProvider
extends java.lang.Object
Color retrieving.| Constructor and Description |
|---|
ColorProvider() |
| Modifier and Type | Method and Description |
|---|---|
static ColorProvider |
byColor(java.awt.Color color)
Factory method for creating color holder that always returns given
Color object. |
static ColorProvider |
byColorScheme(Editor editor,
ColorKey... keys)
Shortcut for calling
byColorsScheme(EditorColorsScheme, ColorKey...) with colors scheme retrieved from the given editor. |
static ColorProvider |
byColorsScheme(EditorColorsScheme scheme,
ColorKey... keys)
Factory method for creating color holder that delegates target color retrieval to the given colors scheme.
|
abstract java.awt.Color |
getColor() |
public abstract java.awt.Color getColor()
Color object managed by the current holderpublic static ColorProvider byColor(java.awt.Color color)
Color object.color - target color to usepublic static ColorProvider byColorScheme(Editor editor, ColorKey... keys)
byColorsScheme(EditorColorsScheme, ColorKey...) with colors scheme retrieved from the given editor.editor - target colors scheme holderkeys - target color identifierspublic static ColorProvider byColorsScheme(EditorColorsScheme scheme, ColorKey... keys)
default color is used then.scheme - target colors scheme to usekeys - target color identifiers