Class SyntaxStyle
java.lang.Object
com.inductiveautomation.ignition.client.jedittextarea.SyntaxStyle
A simple text style class. It can specify the color, italic flag, and bold flag of a run of text.
- 
Constructor SummaryConstructorsConstructorDescriptionSyntaxStyle(Color color, boolean italic, boolean bold) Creates a new SyntaxStyle.
- 
Method SummaryModifier and TypeMethodDescriptiongetColor()Returns the color specified in this style.getFontMetrics(Font font) Returns the font metrics for the styled font.getStyledFont(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(Graphics gfx, Font font) Sets the foreground color and font of the specified graphics context to that specified in this style.toString()Returns a string representation of this object.
- 
Constructor Details- 
SyntaxStyleCreates a new SyntaxStyle.- Parameters:
- color- The text color
- italic- True if the text should be italics
- bold- True if the text should be bold
 
 
- 
- 
Method Details- 
getColorReturns 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.
- 
getStyledFontReturns the specified font, but with the style's bold and italic flags applied.
- 
getFontMetricsReturns the font metrics for the styled font.
- 
setGraphicsFlagsSets 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
 
- 
toStringReturns a string representation of this object.
 
-