|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.StyleContext
fr.gael.drb.query.GrammarContext
public class GrammarContext
A collection of styles used to render xquery script. This class also acts as a factory for the views used to represent the grammarized documents. Since the rendering styles are based upon view preferences, the views need a way to gain access to the style settings which is facilitated by implementing the factory in the style storage. Both functionalities can be widely shared across grammarized document views.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.StyleContext |
|---|
StyleContext.NamedStyle, StyleContext.SmallAttributeSet |
| Field Summary | |
|---|---|
Color |
commentColor
Comment color. |
Font |
defaultFont
Default font. |
| Fields inherited from class javax.swing.text.StyleContext |
|---|
DEFAULT_STYLE |
| Constructor Summary | |
|---|---|
GrammarContext()
Constructs a set of styles to represent java lexical tokens. |
|
| Method Summary | |
|---|---|
Font |
getDefaultFont()
Returns the default font. |
Font |
getFont(int code)
Fetch the font to use for a lexical token with the given scan value. |
Color |
getForeground(int code)
Fetch the foreground color to use for a lexical token with the given value. |
Style |
getStyleForScanValue(int code)
Fetches the attribute set to use for the given scan code. |
void |
setDefaultFontSize(float font_size)
Sets the default font size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Color commentColor
public Font defaultFont
| Constructor Detail |
|---|
public GrammarContext()
| Method Detail |
|---|
public void setDefaultFontSize(float font_size)
font_size - the default font size to be used.public Color getForeground(int code)
code - the token code.
public Font getDefaultFont()
public Font getFont(int code)
code - the token code.
public Style getStyleForScanValue(int code)
code - the token code.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||