satc
Class TokenContext
java.lang.Object
|
+--satc.TokenContext
- public class TokenContext
- extends java.lang.Object
Field Summary |
protected java.awt.Color[] |
tokenColors
Cache of foreground colors to represent the
various tokens. |
protected int |
tokenCount
|
protected javax.swing.text.AttributeSet[] |
tokenStyles
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokenColors
protected java.awt.Color[] tokenColors
- Cache of foreground colors to represent the
various tokens.
tokenStyles
protected javax.swing.text.AttributeSet[] tokenStyles
tokenCount
protected int tokenCount
TokenContext
public TokenContext()
getColor
public java.awt.Color getColor(antlr.Token token)
setStyle
public void setStyle(int tokenType,
javax.swing.text.AttributeSet style)
getTokenCount
public int getTokenCount()
setTokenCount
public void setTokenCount(int count)
getTokenStyles
protected javax.swing.text.AttributeSet[] getTokenStyles()