|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsyntaxhighlight.Style
public class Style
The style used by syntaxhiglight.Theme as those of CSS styles.
| Field Summary | |
|---|---|
protected javax.swing.text.SimpleAttributeSet |
attributeSet
The AttributeSet representation of this style. |
protected java.awt.Color |
background
The background color, null means no background color is set. |
protected boolean |
bold
Font bold. |
protected boolean |
changed
It indicate whether the attributeSet has updated after any style
changes. |
protected java.awt.Color |
color
Font color. |
protected boolean |
italic
Font italic. |
protected boolean |
underline
Font underline. |
| Constructor Summary | |
|---|---|
Style()
Constructor. |
|
| Method Summary | |
|---|---|
Style |
clone()
|
boolean |
equals(java.lang.Object obj)
|
javax.swing.text.SimpleAttributeSet |
getAttributeSet()
Get the AttributeSet of this style. |
java.awt.Color |
getBackground()
Get the background color. |
java.awt.Color |
getColor()
|
int |
hashCode()
|
boolean |
isBold()
|
boolean |
isItalic()
|
boolean |
isUnderline()
|
void |
setBackground(java.awt.Color background)
Set the background color. |
void |
setBold(boolean bold)
|
void |
setColor(java.awt.Color color)
|
void |
setItalic(boolean italic)
|
void |
setUnderline(boolean underline)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean changed
attributeSet has updated after any style
changes.
protected javax.swing.text.SimpleAttributeSet attributeSet
AttributeSet representation of this style.
protected boolean bold
protected java.awt.Color color
protected java.awt.Color background
protected boolean underline
protected boolean italic
| Constructor Detail |
|---|
public Style()
Default values:
| Method Detail |
|---|
public javax.swing.text.SimpleAttributeSet getAttributeSet()
AttributeSet of this style.
AttributeSetpublic java.awt.Color getBackground()
public void setBackground(java.awt.Color background)
background - null means do not set the backgroundpublic boolean isBold()
public void setBold(boolean bold)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public boolean isItalic()
public void setItalic(boolean italic)
public boolean isUnderline()
public void setUnderline(boolean underline)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Style clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||