multivalent.node

Class FixedLeafAsciiKern

public class FixedLeafAsciiKern extends FixedLeafAscii implements Fixed

Leaf subclass for fixed-formatted Unicode with kerning.

Version: $Revision: 1.4 $ $Date: 2004/02/05 02:45:05 $

Constructor Summary
FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, float[] kern)
FixedLeafAsciiKern(String name, String estr, Map<String,Object> attr, INode parent, float[] kern)
FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, double kern)
Constant kerning.
FixedLeafAsciiKern(String name, String estr, Map<String,Object> attr, INode parent, double kern)
Method Summary
voidappend(Leaf l)
voidappend(String text, String estr)
voidappend(String text, String estr, float kern)
Append text with constant kerning between new characters.
voidappend(String text, String estr, float[] kern)
booleanformatNodeContent(Context cx, int start, int end)
Measurements adjusted by kerns.
doublegetKernAt(int index)
booleanpaintNodeContent(Context cx, int start, int end)
Chunk by kerns as well as spans.
voidsetKernAt(int index, double kern)
voidsubelementCalc(Context cx)
Widths adjusted by kerns.

Constructor Detail

FixedLeafAsciiKern

public FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, float[] kern)

Parameters: kern null for none / 0 kern.

FixedLeafAsciiKern

public FixedLeafAsciiKern(String name, String estr, Map<String,Object> attr, INode parent, float[] kern)

FixedLeafAsciiKern

public FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, double kern)
Constant kerning.

FixedLeafAsciiKern

public FixedLeafAsciiKern(String name, String estr, Map<String,Object> attr, INode parent, double kern)

Method Detail

append

public void append(Leaf l)

append

public void append(String text, String estr)

append

public void append(String text, String estr, float kern)
Append text with constant kerning between new characters.

append

public void append(String text, String estr, float[] kern)

formatNodeContent

public boolean formatNodeContent(Context cx, int start, int end)
Measurements adjusted by kerns.

getKernAt

public double getKernAt(int index)

paintNodeContent

public boolean paintNodeContent(Context cx, int start, int end)
Chunk by kerns as well as spans.

setKernAt

public void setKernAt(int index, double kern)

subelementCalc

public void subelementCalc(Context cx)
Widths adjusted by kerns.