public class Style
extends java.lang.Object
Style
group the several values required to paint
a Tile
.
Style
s are grouped into a linked list in ancestry order.
This disposition permits to implement style inheritance.
Modifier and Type | Field and Description |
---|---|
protected int |
alignment |
protected AttributeList |
atts |
protected int |
backColor |
static int |
defaultFontSize
Set the default font size to be used in the current build.
|
protected int |
fontBits |
protected int |
fontColor |
protected java.lang.String |
fontFace |
protected int |
fontSize |
protected java.lang.String |
href
If this text is part of a link, what is the href for this link
|
protected int |
indent |
protected boolean |
isDisjoint |
protected boolean |
isParagraph |
protected int |
topMargin |
Modifier and Type | Method and Description |
---|---|
int |
getControlAlignment(boolean isRelative)
Returns the Control alignment constant to be used by elements using this style.
|
Font |
getFont() |
public static int defaultFontSize
protected boolean isParagraph
protected int fontBits
protected int topMargin
protected int fontSize
protected java.lang.String fontFace
protected int fontColor
protected int backColor
protected int alignment
protected int indent
protected boolean isDisjoint
protected AttributeList atts
protected java.lang.String href
public Font getFont()
public int getControlAlignment(boolean isRelative)
isRelative
- true if the alignment constant returned should be relative to another control instead of relative to the
screen.