multivalent.std.span

Class FontSpan

public class FontSpan extends Span

Convenience span for setting font properties: family, size, style. Applications should usually instead use a generic Span with a name, and set display properties in the stylesheet.

Version: $Revision: 1.1 $ $Date: 2002/02/02 13:16:26 $

Field Summary
static StringATTR_FAMILY
static StringATTR_SIZE
static StringATTR_STYLE
Stringfamily
Family name, or null to disable.
floatsize
Size in logical points.
intstyle
OR of Font.BOLD, Font.ITALIC, and Font.PLAIN; or -1 to disable.
Method Summary
booleanappearance(Context cx, boolean all)
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
ESISNodesave()

Field Detail

ATTR_FAMILY

public static final String ATTR_FAMILY

ATTR_SIZE

public static final String ATTR_SIZE

ATTR_STYLE

public static final String ATTR_STYLE

family

public String family
Family name, or null to disable.

size

public float size
Size in logical points. Set to -1 to disable.

style

public int style
OR of Font.BOLD, Font.ITALIC, and Font.PLAIN; or -1 to disable.

Method Detail

appearance

public boolean appearance(Context cx, boolean all)

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

save

public ESISNode save()