Package com.intellij.ui
Class SimpleTextAttributes
java.lang.Object
com.intellij.ui.SimpleTextAttributes
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final intstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final SimpleTextAttributesstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final SimpleTextAttributes -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTextAttributes(int style, Color fgColor) SimpleTextAttributes(int style, Color fgColor, Color waveColor) SimpleTextAttributes(Color bgColor, Color fgColor, Color waveColor, int style) -
Method Summary
Modifier and TypeMethodDescriptionintintgetStyle()booleanbooleanisOpaque()booleanbooleanbooleanbooleanbooleanisWaved()static SimpleTextAttributesmerge(SimpleTextAttributes weak, SimpleTextAttributes strong)
-
Field Details
-
STYLE_PLAIN
public static final int STYLE_PLAIN- See Also:
-
STYLE_BOLD
public static final int STYLE_BOLD- See Also:
-
STYLE_ITALIC
public static final int STYLE_ITALIC- See Also:
-
FONT_MASK
public static final int FONT_MASK- See Also:
-
STYLE_STRIKEOUT
public static final int STYLE_STRIKEOUT- See Also:
-
STYLE_WAVED
public static final int STYLE_WAVED- See Also:
-
STYLE_UNDERLINE
public static final int STYLE_UNDERLINE- See Also:
-
STYLE_BOLD_DOTTED_LINE
public static final int STYLE_BOLD_DOTTED_LINE- See Also:
-
STYLE_SEARCH_MATCH
public static final int STYLE_SEARCH_MATCH- See Also:
-
STYLE_SMALLER
public static final int STYLE_SMALLER- See Also:
-
STYLE_OPAQUE
public static final int STYLE_OPAQUE- See Also:
-
REGULAR_ATTRIBUTES
-
REGULAR_BOLD_ATTRIBUTES
-
REGULAR_ITALIC_ATTRIBUTES
-
ERROR_ATTRIBUTES
-
GRAYED_ATTRIBUTES
-
GRAYED_BOLD_ATTRIBUTES
-
GRAYED_ITALIC_ATTRIBUTES
-
GRAYED_SMALL_ATTRIBUTES
-
SYNTHETIC_ATTRIBUTES
-
GRAY_ATTRIBUTES
-
GRAY_ITALIC_ATTRIBUTES
-
DARK_TEXT
-
SIMPLE_CELL_ATTRIBUTES
-
SELECTED_SIMPLE_CELL_ATTRIBUTES
-
EXCLUDED_ATTRIBUTES
-
LINK_ATTRIBUTES
-
LINK_BOLD_ATTRIBUTES
-
-
Constructor Details
-
SimpleTextAttributes
- Parameters:
style- style of the text fragment. 5fgColor- color of the text fragment.colorcan benull. In that caseSimpleColoredComponentwill use its foreground to paint the text fragment.
-
SimpleTextAttributes
-
SimpleTextAttributes
-
-
Method Details
-
getFgColor
- Returns:
- foreground color
-
getBgColor
- Returns:
- background color
-
getWaveColor
- Returns:
- wave color. The method can return
null.nullmeans that color of wave is the same as foreground color.
-
getStyle
public int getStyle() -
isStrikeout
public boolean isStrikeout()- Returns:
- whether text is struck out or not
-
isWaved
public boolean isWaved()- Returns:
- whether text is waved or not
-
isUnderline
public boolean isUnderline() -
isBoldDottedLine
public boolean isBoldDottedLine() -
isSearchMatch
public boolean isSearchMatch() -
isSmaller
public boolean isSmaller() -
isOpaque
public boolean isOpaque() -
getFontStyle
public int getFontStyle() -
derive
-
merge
-