Class SyntaxStyle
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.jedittextarea.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 SummaryConstructors Constructor Description SyntaxStyle(java.awt.Color color, boolean italic, boolean bold)Creates a new SyntaxStyle.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor()Returns the color specified in this style.java.awt.FontMetricsgetFontMetrics(java.awt.Font font)Returns the font metrics for the styled font.java.awt.FontgetStyledFont(java.awt.Font font)Returns the specified font, but with the style's bold and italic flags applied.booleanisBold()Returns true if boldface is enabled for this style.booleanisItalic()Returns true if italics is enabled for this style.booleanisPlain()Returns true if no font styles are enabled.voidsetGraphicsFlags(java.awt.Graphics gfx, java.awt.Font font)Sets the foreground color and font of the specified graphics context to that specified in this style.java.lang.StringtoString()Returns a string representation of this object.
 
- 
- 
- 
Method Detail- 
getColorpublic java.awt.Color getColor() Returns the color specified in this style.
 - 
isPlainpublic boolean isPlain() Returns true if no font styles are enabled.
 - 
isItalicpublic boolean isItalic() Returns true if italics is enabled for this style.
 - 
isBoldpublic boolean isBold() Returns true if boldface is enabled for this style.
 - 
getStyledFontpublic java.awt.Font getStyledFont(java.awt.Font font) Returns the specified font, but with the style's bold and italic flags applied.
 - 
getFontMetricspublic java.awt.FontMetrics getFontMetrics(java.awt.Font font) Returns the font metrics for the styled font.
 - 
setGraphicsFlagspublic void setGraphicsFlags(java.awt.Graphics gfx, java.awt.Font font)Sets the foreground color and font of the specified graphics context to that specified in this style.- Parameters:
- gfx- The graphics context
- font- The font to add the styles to
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of this object.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-