Module jEdit

Class SyntaxStyle

java.lang.Object
org.gjt.sp.jedit.syntax.SyntaxStyle

public class SyntaxStyle extends Object
A simple text style class. It can specify the color, italic flag, and bold flag of a run of text.
Version:
$Id: SyntaxStyle.java 25170 2020-04-11 14:33:46Z kpouer $
Author:
Slava Pestov
  • Constructor Details

    • SyntaxStyle

      public SyntaxStyle(Color fgColor, Color bgColor, Font font)
      Creates a new SyntaxStyle.
      Parameters:
      fgColor - The text color
      bgColor - The background color
      font - The text font
  • Method Details

    • getForegroundColor

      public Color getForegroundColor()
      Returns the text color.
    • getBackgroundColor

      public Color getBackgroundColor()
      Returns the background color.
    • getFont

      public Font getFont()
      Returns the style font.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object