|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.FontStyle
public class FontStyle
This is the Style Class. This will contain all the font information.
Field Summary | |
---|---|
static int |
DEFAULT_BACKGROUND_COLOR
Default background color. |
static java.lang.String |
DEFAULT_FONT
Default font. |
static int |
DEFAULT_FONT_SIZE
Default font size for non-touch screen devices. |
static int |
DEFAULT_FONT_SIZE_UNIT
Default font unit. |
static int |
DEFAULT_FOREGROUND_COLOR
Default foreground color. |
static int |
DEFAULT_GRADIENT_COLOR
Default gradient color. |
static int |
DEFAULT_STYLE
Default font style. |
static java.lang.String |
DEFAULT_SYSTEM_FONT
Default system font. |
static int |
FONT_SIZE_UNIT_PIXEL
Default pixel font unit. |
static int |
FONT_SIZE_UNIT_POINT
Default point font unit. |
Constructor Summary | |
---|---|
FontStyle()
Constructor to create a Font Style object |
|
FontStyle(java.lang.String fontFace,
int fontSize,
int fontSizeUnit,
int fontStyle,
int foregroundColor,
int backgroundColor)
Constructor to create a Font Style object |
|
FontStyle(java.lang.String fontFace,
int fontSize,
int fontSizeUnit,
int fontStyle,
int foregroundColor,
int backgroundColor,
int gradientColor)
Constructor to create a Font Style object |
Method Summary | |
---|---|
FontStyle |
clone()
Make a copy of this Font Style |
int |
getBackgroundColor()
Get the background color |
net.rim.device.api.ui.Font |
getBoldFont()
Get bold Font object |
net.rim.device.api.ui.Font |
getFont()
Get the Font object |
java.lang.String |
getFontFace()
Get the font face |
net.rim.device.api.ui.FontFamily |
getFontFamily()
Get the font family object |
net.rim.device.api.ui.FontFamily |
getFontFamily(java.lang.String fontFace)
Get the font family object |
int |
getFontSize()
Get the font size |
int |
getFontSizeUnit()
Get the font size unit in pixel or point |
int |
getFontStyle()
Get the font style |
int |
getForegroundColor()
Get the foreground color |
int |
getGradientColor()
Get the gradient color |
void |
setBackgroundColor(int color)
Set the background color |
void |
setFontFace(java.lang.String fontFace)
Set the font face |
void |
setFontSize(int fontSize)
Set the font size |
void |
setFontSizeUnit(int fontSizeUnit)
Set the font size unit |
void |
setFontStyle(int fontStyle)
Set the font style |
void |
setForegroundColor(int color)
Set the foreground color |
void |
setGradientColor(int color)
Get the gradient color |
java.lang.String |
toString()
Descript of this font style object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SYSTEM_FONT
public static final java.lang.String DEFAULT_FONT
public static final int DEFAULT_FOREGROUND_COLOR
public static final int DEFAULT_BACKGROUND_COLOR
public static final int DEFAULT_GRADIENT_COLOR
public static final int DEFAULT_STYLE
public static final int FONT_SIZE_UNIT_PIXEL
public static final int FONT_SIZE_UNIT_POINT
public static final int DEFAULT_FONT_SIZE_UNIT
public static final int DEFAULT_FONT_SIZE
Constructor Detail |
---|
public FontStyle()
public FontStyle(java.lang.String fontFace, int fontSize, int fontSizeUnit, int fontStyle, int foregroundColor, int backgroundColor)
fontFace
- - String value for the font family
null if not setfontSize
- - int value for the font size in points
-1 if not setfontSizeUnit
- - Can be either point (Ui.UNITS_pt) or pixel (Ui.UNITS_px)
-1 if not setfontStyle
- - int value for the font style can be Font.PLAIN, Font.BOLD, Font.ITALIC, or combination
-1 if not setforegroundColor
- - int value for the color of the text color
-1 if not setbackgroundColor
- - int value for the color of the back ground color
-1 if not setpublic FontStyle(java.lang.String fontFace, int fontSize, int fontSizeUnit, int fontStyle, int foregroundColor, int backgroundColor, int gradientColor)
fontFace
- - String value for the font family
null if not setfontSize
- - int value for the font size in points
-1 if not setfontSizeUnit
- - Can be either point (Ui.UNITS_pt) or pixel (Ui.UNITS_px)
-1 if not setfontStyle
- - int value for the font style can be Font.PLAIN, Font.BOLD, Font.ITALIC, or combination
-1 if not setforegroundColor
- - int value for the color of the text color
-1 if not setbackgroundColor
- - int value for the color of the back ground color
-1 if not setgradientColor
- - int value for the color of the gradient color
-1 if not setMethod Detail |
---|
public void setFontFace(java.lang.String fontFace)
fontFace
- - name of the font facepublic java.lang.String getFontFace()
public void setFontSize(int fontSize)
fontSize
- - int value of the font size in points or pixels
depending on what the font size unit is set topublic int getFontSize()
public void setFontSizeUnit(int fontSizeUnit)
fontSizeUnit
- - font size unit, can be Ui.UNITS_px or Ui.UNITS_ptpublic int getFontSizeUnit()
public void setFontStyle(int fontStyle)
fontStyle
- - int value of the font stylepublic int getFontStyle()
public void setForegroundColor(int color)
color
- - int value of the colorpublic int getForegroundColor()
public void setBackgroundColor(int color)
color
- - int value of the colorpublic int getBackgroundColor()
public void setGradientColor(int color)
public int getGradientColor()
public net.rim.device.api.ui.FontFamily getFontFamily()
public net.rim.device.api.ui.FontFamily getFontFamily(java.lang.String fontFace)
public net.rim.device.api.ui.Font getFont()
public net.rim.device.api.ui.Font getBoldFont()
public FontStyle clone()
public 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 |