multivalent.node

Class FixedLeafAsciiKern

public class FixedLeafAsciiKern extends FixedLeafAscii implements Fixed

Leaf subclass for fixed-formatted ASCII with kerning. Kern can in range of -128 to +127 pixels.

Version: $Revision: 1.3 $ $Date: 2002/02/02 13:41:39 $

Constructor Summary
FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, byte[] kern)
null kern means none or 0 kern.
FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, byte kern)
Constant kerning.
Method Summary
voidappendText(String text)
voidappendText(String text, byte kern)
booleanformatNodeContent(Context cx, int start, int end)
Measurements adjusted by kerns.
byte[]getKern()
bytegetKernAt(int index)
booleanpaintNodeContent(Context cx, int start, int end)
Chunk by kerns as well as spans.
voidsetKern(byte[] kern)
voidsetKernAt(int index, byte kern)
voidsubelementCalc(Context cx)
Widths adjusted by kerns.

Constructor Detail

FixedLeafAsciiKern

public FixedLeafAsciiKern(String name, Map<String,Object> attr, INode parent, byte[] kern)
null kern means none or 0 kern.

FixedLeafAsciiKern

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

Method Detail

appendText

public void appendText(String text)

appendText

public void appendText(String text, byte kern)

formatNodeContent

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

getKern

public byte[] getKern()

getKernAt

public byte getKernAt(int index)

paintNodeContent

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

setKern

public void setKern(byte[] kern)

setKernAt

public void setKernAt(int index, byte kern)

subelementCalc

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