public interface EditorColorsScheme extends java.lang.Cloneable, TextAttributesScheme, Scheme, SchemeMetaInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SCHEME_ALIAS |
static java.lang.String |
DEFAULT_SCHEME_NAME |
EDITABLE_COPY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.awt.Color |
getColor(ColorKey key) |
java.lang.String |
getConsoleFontName() |
FontPreferences |
getConsoleFontPreferences() |
int |
getConsoleFontSize() |
float |
getConsoleLineSpacing() |
java.awt.Color |
getDefaultBackground() |
java.awt.Color |
getDefaultForeground() |
java.lang.String |
getEditorFontName() |
int |
getEditorFontSize() |
java.awt.Font |
getFont(EditorFontType key) |
FontPreferences |
getFontPreferences()
The IDE has allowed to configure only a single font family for a while.
|
float |
getLineSpacing() |
default FontSize |
getQuickDocFontSize()
Deprecated.
Quick documentation component's font size is stored in application level property, and can be obtained
using
DocumentationComponent.getQuickDocFontSize() . |
default boolean |
isUseAppFontPreferencesInEditor() |
default boolean |
isUseEditorFontPreferencesInConsole() |
void |
readExternal(Element parentNode) |
void |
setAttributes(TextAttributesKey key,
TextAttributes attributes) |
void |
setColor(ColorKey key,
java.awt.Color color) |
void |
setConsoleFontName(java.lang.String fontName) |
void |
setConsoleFontPreferences(FontPreferences preferences) |
void |
setConsoleFontSize(int fontSize) |
void |
setConsoleLineSpacing(float lineSpacing) |
void |
setEditorFontName(java.lang.String fontName) |
void |
setEditorFontSize(int fontSize)
Sets font size.
|
void |
setFont(EditorFontType key,
java.awt.Font font)
Deprecated.
Use
getFontPreferences() and ModifiableFontPreferences
to change fonts. |
void |
setFontPreferences(FontPreferences preferences) |
void |
setLineSpacing(float lineSpacing)
Sets line spacing.
|
void |
setName(java.lang.String name) |
default void |
setQuickDocFontSize(FontSize fontSize)
Deprecated.
Quick documentation component's font size is stored in application level property, and can be set
using
DocumentationComponent.setQuickDocFontSize(FontSize) . |
default void |
setUseAppFontPreferencesInEditor() |
default void |
setUseEditorFontPreferencesInConsole() |
getAttributes
getDisplayName, getName
getMetaProperties
static final java.lang.String DEFAULT_SCHEME_NAME
static final java.lang.String DEFAULT_SCHEME_ALIAS
void setName(java.lang.String name)
void setAttributes(TextAttributesKey key, TextAttributes attributes)
java.awt.Color getDefaultBackground()
java.awt.Color getDefaultForeground()
java.awt.Color getColor(ColorKey key)
void setColor(ColorKey key, java.awt.Color color)
FontPreferences getFontPreferences()
FontPreferences
).
However, old single font-based API is still here in order to preserve backward compatibility (getEditorFontName()
and
getEditorFontSize()
). I.e. those methods are just re-written in order to use FontPreferences
object exposed
by this method.void setFontPreferences(FontPreferences preferences)
java.lang.String getEditorFontName()
void setEditorFontName(java.lang.String fontName)
int getEditorFontSize()
void setEditorFontSize(int fontSize)
fontSize
is within bounds and could change it if it is
more than EditorFontsConstants.getMaxEditorFontSize()
or less than
EditorFontsConstants.getMinEditorFontSize()
EditorFontsConstants
@Deprecated default FontSize getQuickDocFontSize()
DocumentationComponent.getQuickDocFontSize()
.@Deprecated default void setQuickDocFontSize(FontSize fontSize)
DocumentationComponent.setQuickDocFontSize(FontSize)
.java.awt.Font getFont(EditorFontType key)
@Deprecated void setFont(EditorFontType key, java.awt.Font font)
getFontPreferences()
and ModifiableFontPreferences
to change fonts.float getLineSpacing()
void setLineSpacing(float lineSpacing)
lineSpacing
is within bounds and could change it if it is
more than EditorFontsConstants.getMaxEditorLineSpacing()
or less than
EditorFontsConstants.getMinEditorLineSpacing()
EditorFontsConstants
java.lang.Object clone()
FontPreferences getConsoleFontPreferences()
getFontPreferences()
void setConsoleFontPreferences(FontPreferences preferences)
default void setUseEditorFontPreferencesInConsole()
default boolean isUseEditorFontPreferencesInConsole()
default void setUseAppFontPreferencesInEditor()
default boolean isUseAppFontPreferencesInEditor()
java.lang.String getConsoleFontName()
void setConsoleFontName(java.lang.String fontName)
int getConsoleFontSize()
void setConsoleFontSize(int fontSize)
float getConsoleLineSpacing()
void setConsoleLineSpacing(float lineSpacing)
void readExternal(Element parentNode)