FileDocCategorySizeDatePackage
TextNode.javaAPI DocphoneME MR2 API (J2ME)3345Wed May 02 18:00:36 BST 2007com.sun.perseus.model

TextNode

public interface TextNode implements DecoratedNode, com.sun.perseus.j2d.TextProperties
TextNode is the interface that all ModelNode (see {@link com.sun.perseus.model.ModelNode ModelNode}) which support the definition of text properties (such as text-anchor or font-size) implement. IMPORTANT NOTE: setting a property automatically sets the inherited flag to false.
see
ModelNode
version
$Id: TextNode.java,v 1.3 2006/04/21 06:39:12 st125089 Exp $

Fields Summary
int
PROPERTY_FONT_FAMILY
Controls the font's family
int
PROPERTY_FONT_SIZE
Controls the font's height
int
PROPERTY_FONT_STYLE
Controls the font's slant style, oblique or plain
int
PROPERTY_FONT_WEIGHT
Controls the font's boldness
int
PROPERTY_TEXT_ANCHOR
Controls how text is laid out about the anchor point
int
FONT_WEIGHT_BOLDER
See the CSS 2 specification of a definition of bolder
int
FONT_WEIGHT_LIGHTER
See the CSS 2 specification for a definition of lighter
int
DEFAULT_INHERITANCE
Default inheritance settings (from right to left) (Y=Yes, N=No):
- Y font-family
- Y font-size
- Y font-style
- Y font-weight

- Y text-anchor
The value is shifted by 2 bytes to the left so that it can be combined with GraphicsNode.DEFAULT_INHERITANCE
int
NUMBER_OF_PROPERTIES
Number of properties in a TextNode
Constructors Summary
Methods Summary