Class SimpleTextAttributes

java.lang.Object
com.intellij.ui.SimpleTextAttributes

public final class SimpleTextAttributes extends Object
  • Field Details

  • Constructor Details

    • SimpleTextAttributes

      public SimpleTextAttributes(int style, Color fgColor)
      Parameters:
      style - style of the text fragment. 5
      fgColor - color of the text fragment. color can be null. In that case SimpleColoredComponent will use its foreground to paint the text fragment.
    • SimpleTextAttributes

      public SimpleTextAttributes(int style, Color fgColor, @Nullable Color waveColor)
    • SimpleTextAttributes

      public SimpleTextAttributes(@Nullable Color bgColor, Color fgColor, @Nullable Color waveColor, int style)
  • Method Details

    • getFgColor

      public Color getFgColor()
      Returns:
      foreground color
    • getBgColor

      @Nullable public Color getBgColor()
      Returns:
      background color
    • getWaveColor

      @Nullable public Color getWaveColor()
      Returns:
      wave color. The method can return null. null means 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

      public SimpleTextAttributes derive(int style, @Nullable Color fg, @Nullable Color bg, @Nullable Color wave)
    • merge

      public static SimpleTextAttributes merge(SimpleTextAttributes weak, SimpleTextAttributes strong)