Class JSyntaxStyleManager
java.lang.Object
net.thevpc.jeep.editor.JSyntaxStyleManager
The STyles to use for each TokenType. The defaults are created here, and
then the resource META-INF/services/syntaxstyles.properties is read and
merged. You can also pass a properties instance and merge your preferred
styles into the default styles
- Author:
- Ayman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdrawText(Segment segment, int x, int y, Graphics graphics, TabExpander e, JToken token) Draw the given Token.static FontgetFont()getTokenIdStyle(int type) Return the style for the given TokenTypegetTokenIdStyle(JToken token) booleansetCaretColor(Color caretColor) voidsetGraphicsStyle(Graphics g, int type) Deprecated.setRightMarginColor(Color rightMarginColor) voidsetTokenIdStyle(int type, JSyntaxStyle style) setUseDefaultFont(boolean useDefaultFont)
-
Constructor Details
-
JSyntaxStyleManager
public JSyntaxStyleManager()
-
-
Method Details
-
getTokensFormat
-
getDefaultFont
-
isUseDefaultFont
public boolean isUseDefaultFont() -
setUseDefaultFont
-
getFont
-
setFont
-
getCaretColor
-
setCaretColor
-
setTokenIdStyle
-
getRightMarginColor
-
setRightMarginColor
-
setGraphicsStyle
Deprecated.Set the graphics font and others to the style for the given token- Parameters:
g-type-
-
getTokenIdStyle
-
getTokenIdStyle
Return the style for the given TokenType- Parameters:
type-- Returns:
-
drawText
Draw the given Token. This will simply find the proper JSyntaxStyle for the TokenType and then asks the proper Style to draw the text of the Token.- Parameters:
segment-x-y-graphics-e-token-- Returns:
-