public class JSyntaxStyleManager extends Object
| Constructor and Description |
|---|
JSyntaxStyleManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
drawText(Segment segment,
int x,
int y,
Graphics graphics,
TabExpander e,
net.thevpc.jeep.JToken token)
Draw the given Token.
|
Color |
getCaretColor() |
static Font |
getDefaultFont() |
Font |
getFont() |
Color |
getRightMarginColor() |
JSyntaxStyle |
getTokenIdStyle(int type)
Return the style for the given TokenType
|
JSyntaxStyle |
getTokenIdStyle(net.thevpc.jeep.JToken token) |
net.thevpc.jeep.impl.tokens.JTokensStringFormat |
getTokensFormat() |
boolean |
isUseDefaultFont() |
JSyntaxStyleManager |
setCaretColor(Color caretColor) |
JSyntaxStyleManager |
setFont(Font font) |
void |
setGraphicsStyle(Graphics g,
int type)
Deprecated.
|
JSyntaxStyleManager |
setRightMarginColor(Color rightMarginColor) |
void |
setTokenIdStyle(int type,
JSyntaxStyle style) |
JSyntaxStyleManager |
setUseDefaultFont(boolean useDefaultFont) |
public net.thevpc.jeep.impl.tokens.JTokensStringFormat getTokensFormat()
public static Font getDefaultFont()
public boolean isUseDefaultFont()
public JSyntaxStyleManager setUseDefaultFont(boolean useDefaultFont)
public Font getFont()
public JSyntaxStyleManager setFont(Font font)
public Color getCaretColor()
public JSyntaxStyleManager setCaretColor(Color caretColor)
public void setTokenIdStyle(int type,
JSyntaxStyle style)
public Color getRightMarginColor()
public JSyntaxStyleManager setRightMarginColor(Color rightMarginColor)
@Deprecated public void setGraphicsStyle(Graphics g, int type)
g - type - public JSyntaxStyle getTokenIdStyle(net.thevpc.jeep.JToken token)
public JSyntaxStyle getTokenIdStyle(int type)
type - public int drawText(Segment segment, int x, int y, Graphics graphics, TabExpander e, net.thevpc.jeep.JToken token)
segment - x - y - graphics - e - token - Copyright © 2021 vpc open source initiative. All rights reserved.