|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.util.SyntaxUtilities
public class SyntaxUtilities
Syntax utilities that depends on JDK only and syntax package.
| Field Summary | |
|---|---|
static IPropertyManager |
propertyManager
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static IPropertyManager propertyManager
| Method Detail |
|---|
public static java.lang.String getColorHexString(java.awt.Color c)
c - The color object
public 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 invalid
public 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 monochrome
java.lang.IllegalArgumentException - if the style is invalid
public static SyntaxStyle[] loadStyles(java.lang.String family,
int size)
family - The font familysize - The font size
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||