public class SyntaxUtilities
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static IPropertyManager | propertyManager | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | getColorHexString(java.awt.Color c)Converts a color object to its hex value. | 
| static SyntaxStyle[] | loadStyles(java.lang.String family,
          int size)Loads the syntax styles from the properties, giving them the specified
 base font family and size. | 
| static SyntaxStyle[] | loadStyles(java.lang.String family,
          int size,
          boolean color)Loads the syntax styles from the properties, giving them the specified
 base font family and size. | 
| static java.awt.Color | parseColor(java.lang.String name,
          java.awt.Color defaultColor) | 
| static SyntaxStyle | parseStyle(java.lang.String str,
          java.lang.String family,
          int size,
          boolean color)Converts a style string to a style object. | 
| static SyntaxStyle | parseStyle(java.lang.String str,
          java.lang.String family,
          int size,
          boolean color,
          java.awt.Color defaultFgColor)Converts a style string to a style object. | 
public static IPropertyManager propertyManager
public static java.lang.String getColorHexString(java.awt.Color c)
c - The color objectpublic static java.awt.Color parseColor(java.lang.String name,
                                        java.awt.Color defaultColor)
public static SyntaxStyle parseStyle(java.lang.String str, java.lang.String family, int size, boolean color, java.awt.Color defaultFgColor) throws java.lang.IllegalArgumentException
str - The style stringfamily - Style strings only specify font style, not font familysize - Style strings only specify font style, not font familycolor - If false, the styles will be monochromedefaultFgColor - Default foreground color (if not specified in style string)java.lang.IllegalArgumentException - if the style is invalidpublic static SyntaxStyle parseStyle(java.lang.String str, java.lang.String family, int size, boolean color) throws java.lang.IllegalArgumentException
str - The style stringfamily - Style strings only specify font style, not font familysize - Style strings only specify font style, not font familycolor - If false, the styles will be monochromejava.lang.IllegalArgumentException - if the style is invalidpublic static SyntaxStyle[] loadStyles(java.lang.String family, int size)
family - The font familysize - The font sizepublic static SyntaxStyle[] loadStyles(java.lang.String family, int size, boolean color)
family - The font familysize - The font sizecolor - If false, the styles will be monochrome