Package totalcross.ui.html
Class Style
- java.lang.Object
-
- totalcross.ui.html.Style
-
public class Style extends java.lang.ObjectThe classStylegroup the several values required to paint aTile.Styles are grouped into a linked list in ancestry order. This disposition permits to implement style inheritance.
-
-
Field Summary
Fields Modifier and Type Field Description protected intalignmentprotected AttributeListattsprotected intbackColorstatic intdefaultFontSizeSet the default font size to be used in the current build.protected intfontBitsprotected intfontColorprotected java.lang.StringfontFaceprotected intfontSizeprotected java.lang.StringhrefIf this text is part of a link, what is the href for this linkprotected intindentprotected booleanisDisjointprotected booleanisParagraphprotected inttopMargin
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetControlAlignment(boolean isRelative)Returns the Control alignment constant to be used by elements using this style.FontgetFont()
-
-
-
Field Detail
-
defaultFontSize
public static int defaultFontSize
Set the default font size to be used in the current build. Note that the Document must be re-rendered in order to update its font.
-
isParagraph
protected boolean isParagraph
-
fontBits
protected int fontBits
-
topMargin
protected int topMargin
-
fontSize
protected int fontSize
-
fontFace
protected java.lang.String fontFace
-
fontColor
protected int fontColor
-
backColor
protected int backColor
-
alignment
protected int alignment
-
indent
protected int indent
-
isDisjoint
protected boolean isDisjoint
-
atts
protected AttributeList atts
-
href
protected java.lang.String href
If this text is part of a link, what is the href for this link
-
-
Method Detail
-
getFont
public Font getFont()
-
getControlAlignment
public int getControlAlignment(boolean isRelative)
Returns the Control alignment constant to be used by elements using this style.- Parameters:
isRelative- true if the alignment constant returned should be relative to another control instead of relative to the screen.- Returns:
- the matching Control alignment constant
- Since:
- TotalCross 1.27
-
-