| Modifier and Type | Field and Description |
|---|---|
protected SimpleAttributeSet |
attributeSet
The
AttributeSet representation of this style. |
protected 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 Color |
color
Font color.
|
protected boolean |
italic
Font italic.
|
protected boolean |
underline
Font underline.
|
| Constructor and Description |
|---|
Style()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Style |
clone() |
boolean |
equals(Object obj) |
SimpleAttributeSet |
getAttributeSet()
Get the
AttributeSet of this style. |
Color |
getBackground()
Get the background color.
|
Color |
getColor() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isUnderline() |
void |
setBackground(Color background)
Set the background color.
|
void |
setBold(boolean bold) |
void |
setColor(Color color) |
void |
setItalic(boolean italic) |
void |
setUnderline(boolean underline) |
String |
toString() |
protected boolean changed
attributeSet has updated after any style
changes.protected SimpleAttributeSet attributeSet
AttributeSet representation of this style.protected boolean bold
protected Color color
protected Color background
protected boolean underline
protected boolean italic
public Style()
Default values:
public SimpleAttributeSet getAttributeSet()
AttributeSet of this style.AttributeSetpublic Color getBackground()
public void setBackground(Color background)
background - null means do not set the backgroundpublic boolean isBold()
public void setBold(boolean bold)
public Color getColor()
public void setColor(Color color)
public boolean isItalic()
public void setItalic(boolean italic)
public boolean isUnderline()
public void setUnderline(boolean underline)
Copyright © 2015. All rights reserved.