FileDocCategorySizeDatePackage
TextProperties.javaAPI DocphoneME MR2 API (J2ME)7282Wed May 02 18:00:34 BST 2007com.sun.perseus.j2d

TextProperties

public interface TextProperties
version
$Id: TextProperties.java,v 1.2 2006/04/21 06:35:09 st125089 Exp $

Fields Summary
int
FONT_STYLE_NORMAL
Refer to the CSS 2 specification for a definition of the various font-styles
int
FONT_STYLE_OBLIQUE
Refer to the CSS 2 specification for a definition of the various font-styles
int
FONT_STYLE_ITALIC
Refer to the CSS 2 specification for a definition of the various font-styles
int
FONT_WEIGHT_100
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_200
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_300
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_400
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_NORMAL
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_500
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_600
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_700
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_BOLD
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_800
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_WEIGHT_900
Refer to the CSS 2 specification for a definition of the font-weights
int
FONT_STRETCH_NORMAL
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_ULTRA_CONDENSED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_EXTRA_CONDENSED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_CONDENSED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_SEMI_CONDENSED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_SEMI_EXPANDED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_EXPANDED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_EXTRA_EXPANDED
Refer to the CSS 2 specification for a definition of the font-strech values
int
FONT_STRETCH_ULTRA_EXPANDED
Refer to the CSS 2 specification for a definition of the font-strech values
int
TEXT_ANCHOR_START
Text is anchored about its starting point
int
TEXT_ANCHOR_MIDDLE
Text is anchored about its mid point
int
TEXT_ANCHOR_END
Text is anchored about its end point
String[]
INITIAL_FONT_FAMILY
Default font family array
int
INITIAL_FONT_SIZE
Default font size value
int
INITIAL_FONT_STYLE
By default, the font style is normal
int
INITIAL_FONT_WEIGHT
By default, the font weight is normal
int
INITIAL_TEXT_ANCHOR
By default, text starts on the anchor point
Constructors Summary
Methods Summary
public java.lang.String[]getFontFamily()

return
the font family property

public floatgetFontSize()

return
the font size property, a positive number

public intgetFontStyle()

return
one of FONT_STYLE_NORMAL, FONT_STYLE_OBLIQUE, FONT_STYLE_ITALIC.

public intgetFontWeight()

return
one of the FONT_WEIGHT_XXX values

public intgetTextAnchor()

return
one of TEXT_ANCHOR_START, TEXT_ANCHOR_END or TEXT_ANCHOR_MIDDLE

public voidsetFontFamily(java.lang.String[] fontFamily)

param
fontFamily the new font family property value. The fontFamily describes the list of names to use during font matching.

public voidsetFontSize(float fontSize)

param
fontSize the new font size property value. Should be a positive value.

public voidsetFontStyle(int fontStyle)

param
fontStyle the new font style property value. Should be one of FONT_STYLE_NORMAL, FONT_STYLE_ITALIC, FONT_STYLE_OBLIQUE

public voidsetFontWeight(int fontWeight)

param
fontWeight the new font weight property value. Should be one of the FONT_WEIGHT_XXX values

public voidsetTextAnchor(int textAnchor)

param
textAnchor the new text anchor property value. Should be one of TEXT_ANCHOR_START, TEXT_ANCHOR_MIDDLE or TEXT_ANCHOR_MIDDLE.