Package org.gjt.sp.jedit.syntax
Class SyntaxStyle
- java.lang.Object
-
- org.gjt.sp.jedit.syntax.SyntaxStyle
-
public class SyntaxStyle extends java.lang.ObjectA simple text style class. It can specify the color, italic flag, and bold flag of a run of text.
-
-
Constructor Summary
Constructors Constructor Description SyntaxStyle(java.awt.Color fgColor, java.awt.Color bgColor, java.awt.Font font)Creates a new SyntaxStyle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.awt.ColorgetBackgroundColor()Returns the background color.java.awt.FontgetFont()Returns the style font.java.awt.ColorgetForegroundColor()Returns the text color.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getForegroundColor
public java.awt.Color getForegroundColor()
Returns the text color.
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
Returns the background color.
-
getFont
public java.awt.Font getFont()
Returns the style font.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-