| java.lang.Object org.openlaszlo.compiler.FontInfo
BOLD | final public static int BOLD(Code) | | bit fields for text style
|
BOLDITALIC | final public static int BOLDITALIC(Code) | | bit fields for text style
|
FONTINFO_FALSE | final public static int FONTINFO_FALSE(Code) | | |
FONTINFO_NULL | final public static int FONTINFO_NULL(Code) | | This can have three values:
-1 = unset
0 = false
1 = true
|
FONTINFO_TRUE | final public static int FONTINFO_TRUE(Code) | | |
ITALIC | final public static int ITALIC(Code) | | bit fields for text style
|
NULL_SIZE | final public static int NULL_SIZE(Code) | | |
NULL_STYLE | final public static int NULL_STYLE(Code) | | |
PLAIN | final public static int PLAIN(Code) | | bit fields for text style
|
multiline | public int multiline(Code) | | |
resizable | public int resizable(Code) | | |
styleBits | public int styleBits(Code) | | font style bits
|
FontInfo | public FontInfo(String name, String sz, String st)(Code) | | Create a new FontInfo
Parameters: name - name Parameters: sz - size Parameters: st - style |
getHeight | public int getHeight()(Code) | | |
getSize | public int getSize()(Code) | | the size |
getStyle | final public String getStyle(boolean whitespace)(Code) | | the name |
getStyleBits | public int getStyleBits()(Code) | | the stylebits |
getWidth | public int getWidth()(Code) | | Extra params for static textfield optimization.
Tracks width and height of a view.
|
isFullySpecified | public boolean isFullySpecified()(Code) | | Does this font spec contain a known font name,size,style ?
|
mergeFontInfoFrom | public void mergeFontInfoFrom(FontInfo other)(Code) | | If OTHER has non-null fields, copy
them from OTHER to us.
null fields are indicated by:
name == null,
size == -1,
stylebits == -1,
|
normalizeStyleString | public static String normalizeStyleString(String style, boolean whitespace)(Code) | | "bold italic", "italic bold" -> "bold italic" or "bolditalic"
(depending on the value of whitespace
Parameters: style - a String value a String value |
setHeight | public void setHeight(int w)(Code) | | |
setName | public void setName(String f)(Code) | | Set the name
Parameters: f - the name |
setSize | public void setSize(String sz)(Code) | | Set the size
Parameters: sz - the size |
setSize | public void setSize(int sz)(Code) | | Set the size
Parameters: sz - the size |
setStyle | public void setStyle(String st)(Code) | | Set the style
Parameters: st - style |
setStyleBits | public void setStyleBits(int st)(Code) | | Set the style bits directly
Parameters: st - stylebits |
setWidth | public void setWidth(int w)(Code) | | |
styleBitsFromString | public static int styleBitsFromString(String name)(Code) | | /**
the bits for a style |
styleBitsToString | public static String styleBitsToString(int styleBits, boolean whitespace)(Code) | | Return the string representation of the style.
Parameters: styleBits - an int encoding the style Parameters: whitespace - whether to separate style names by spaces; e.g. true for "bold italic", false for "bolditalic" |
styleBitsToString | public static String styleBitsToString(int styleBits)(Code) | | Return the string representation of the style, e.g. "bold italic".
Parameters: styleBits - an int value |
|
|