public class XMLContext extends StyleContext
StyleContext.NamedStyle, StyleContext.SmallAttributeSet
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_NAME_STYLE |
static String |
ATTRIBUTE_VALUE_STYLE |
static String |
CDATA_STYLE |
static String |
CHARACTER_DATA_STYLE |
static String |
COMMENT_STYLE |
static String |
DOCTYPE_STYLE |
static String |
ELEMENT_STYLE |
protected Map |
syntaxFontMap |
protected Map |
syntaxForegroundMap |
static String |
XML_DECLARATION_STYLE |
DEFAULT_STYLE
Constructor and Description |
---|
XMLContext() |
XMLContext(Map syntaxFontMap,
Map syntaxForegroundMap) |
Modifier and Type | Method and Description |
---|---|
Font |
getSyntaxFont(int ctx) |
Font |
getSyntaxFont(String name) |
Color |
getSyntaxForeground(int ctx) |
Color |
getSyntaxForeground(String name) |
String |
getSyntaxName(int ctx) |
void |
setSyntaxFont(Map syntaxFontMap) |
void |
setSyntaxForeground(Map syntaxForegroundMap) |
addAttribute, addAttributes, addChangeListener, addStyle, createLargeAttributeSet, createSmallAttributeSet, getBackground, getChangeListeners, getCompressionThreshold, getDefaultStyleContext, getEmptySet, getFont, getFont, getFontMetrics, getForeground, getStaticAttribute, getStaticAttributeKey, getStyle, getStyleNames, readAttributes, readAttributeSet, reclaim, registerStaticAttributeKey, removeAttribute, removeAttributes, removeAttributes, removeChangeListener, removeStyle, toString, writeAttributes, writeAttributeSet
public static final String XML_DECLARATION_STYLE
public static final String DOCTYPE_STYLE
public static final String COMMENT_STYLE
public static final String ELEMENT_STYLE
public static final String CHARACTER_DATA_STYLE
public static final String ATTRIBUTE_NAME_STYLE
public static final String ATTRIBUTE_VALUE_STYLE
public static final String CDATA_STYLE
protected Map syntaxForegroundMap
protected Map syntaxFontMap
public void setSyntaxForeground(Map syntaxForegroundMap)
public void setSyntaxFont(Map syntaxFontMap)
public Color getSyntaxForeground(int ctx)
public Font getSyntaxFont(int ctx)
public String getSyntaxName(int ctx)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.