public static final class SyntaxHighlighter.SyntaxElement.Default extends java.lang.Object implements SyntaxHighlighter.SyntaxElement
SyntaxHighlighter.SyntaxElement.Default
Constructor and Description |
---|
Default(java.lang.Object name,
java.util.regex.Pattern pattern,
javax.swing.text.AttributeSet attributeSet) |
Modifier and Type | Method and Description |
---|---|
javax.swing.text.AttributeSet |
getAttributeSet() |
java.awt.Color |
getBackgroundColor() |
java.awt.Color |
getForegroundColor() |
java.lang.Object |
getName() |
java.util.regex.Pattern |
getPattern() |
void |
setAttributeSet(javax.swing.text.AttributeSet attributeSet) |
void |
setColor(java.awt.Color foreground) |
void |
setColor(java.awt.Color foreground,
java.awt.Color background) |
void |
setPattern(java.util.regex.Pattern pattern) |
public Default(java.lang.Object name, java.util.regex.Pattern pattern, javax.swing.text.AttributeSet attributeSet)
public java.lang.Object getName()
getName
in interface SyntaxHighlighter.SyntaxElement
public void setPattern(java.util.regex.Pattern pattern)
setPattern
in interface SyntaxHighlighter.SyntaxElement
public java.util.regex.Pattern getPattern()
getPattern
in interface SyntaxHighlighter.SyntaxElement
public javax.swing.text.AttributeSet getAttributeSet()
getAttributeSet
in interface SyntaxHighlighter.SyntaxElement
public void setAttributeSet(javax.swing.text.AttributeSet attributeSet)
setAttributeSet
in interface SyntaxHighlighter.SyntaxElement
public void setColor(java.awt.Color foreground, java.awt.Color background)
setColor
in interface SyntaxHighlighter.SyntaxElement
public void setColor(java.awt.Color foreground)
setColor
in interface SyntaxHighlighter.SyntaxElement
public java.awt.Color getForegroundColor()
getForegroundColor
in interface SyntaxHighlighter.SyntaxElement
public java.awt.Color getBackgroundColor()
getBackgroundColor
in interface SyntaxHighlighter.SyntaxElement