Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## multivalent.node
Class FixedLeafUnicodeKern

    java.lang.Object
      multivalent.VObject
          multivalent.Node
              multivalent.Leaf
                  multivalent.node.LeafText
                      multivalent.node.LeafUnicode
                          multivalent.node.FixedLeafUnicode
                              multivalent.node.FixedLeafUnicodeKern

All Implemented Interfaces:
  java.lang.Cloneable, Fixed

public class FixedLeafUnicodeKern
extends FixedLeafUnicode
implements Fixed

Leaf subclass for fixed-formatted Unicode with kerning.

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

Field Summary

Fields inherited from class multivalent.node.LeafText
`estr_, Widths_`

Fields inherited from class multivalent.Node
`align, ALIGN_INVALID, ATTR_ID, ATTR_SCRIPT, baseline, BASELINE, bbox, BOTH, BOTTOM, CENTER, CHAR, FILL, floats, INHERIT, JUSTIFY, LEFT, MAXNONSTRUCTDEPTH, MIDDLE, name_, NONE, observers_, parent_, PROBEWIDTH, RIGHT, sticky_, stickycnt_, TOP, valid_, valign`

Fields inherited from class multivalent.VObject
`attr_`

Fields inherited from interface multivalent.node.Fixed
`ATTR_REFORMATTED`

Constructor Summary
`FixedLeafUnicodeKern(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, double kern)` Constant kerning.
`FixedLeafUnicodeKern(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, float[] kern)`
`FixedLeafUnicodeKern(java.lang.String name, java.lang.String estr, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, double kern)`
`FixedLeafUnicodeKern(java.lang.String name, java.lang.String estr, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, float[] kern)`

Method Summary
`void` | `append(Leaf l)` Append leaf to the end of this one, adjusting content, spans, and so on.
`void` | `append(java.lang.String text, java.lang.String estr)`
`void` | `append(java.lang.String text, java.lang.String estr, float kern)` Append text with constant kerning between new characters.
`void` | `append(java.lang.String text, java.lang.String estr, float[] kern)`
`boolean` | `formatNodeContent(Context cx, int start, int end)` Measurements adjusted by kerns.
`double` | `getKernAt(int index)`
`boolean` | `paintNodeContent(Context cx, int start, int end)` Chunk by kerns as well as spans.
`void` | `setKernAt(int index, double kern)`
`void` | `subelementCalc(Context cx)` Widths adjusted by kerns.

Methods inherited from class multivalent.node.FixedLeafUnicode
`dump, getIbbox`

Methods inherited from class multivalent.node.LeafText
`append, clipboardBeforeAfter, clipboardNode, getText, offset2rel, size, subelementHit`

Methods inherited from class multivalent.Leaf
`checkRep, copy, cut, delete, dx, dy, eatme, eventBeforeAfter, eventNode, formatBeforeAfter, formatNode, getFirstLeaf, getLastLeaf, insert, insert, isLeaf, lengthTo, markDirtySubtreeDown, paintBeforeAfter, paintNode, paste, paste, removeTidy, setName, split, subelement`

Methods inherited from class multivalent.Node
`addObserver, addSticky, addSticky, breakAfter, breakBefore, childNum, clipboardBeforeAfter, clone, cmp, commonAncestor, commonAncestor, contains, contains, deleteObserver, dump, dump, dump, findBFS, findBFS, findBFS, findDFS, findDFS, findDFS, findDFS, getAbsLocation, getActivesAt, getActivesAt, getActivesAt, getBbox, getBrowser, getDocument, getElementById, getIScrollPane, getName, getNextLeaf, getNextNode, getNodeName, getObservers, getParentNode, getPrevLeaf, getPrevNode, getRelLocation, getRoot, getSticky, indexSticky, intersects, isStruct, isValid, markDirty, markDirtySubtree, markDirtyTo, morphInto, reformat, remove, removeSticky, removeSticky, repaint, repaint, repaint, repaint, scrollTo, scrollTo, setParentNode, setValid, sizeSticky, spanChunky, spanChunky, structChildNum, toString`

Methods inherited from class multivalent.VObject
`attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface multivalent.node.Fixed
`getBbox, getIbbox`

Constructor Detail

### FixedLeafUnicodeKern

    public FixedLeafUnicodeKern(java.lang.String name,
                                java.util.Map<java.lang.String,java.lang.Object> attr,
                                INode parent,
                                float[] kern)

Parameters:
  `kern` - `null` for none / 0 kern.

### FixedLeafUnicodeKern

    public FixedLeafUnicodeKern(java.lang.String name,
                                java.lang.String estr,
                                java.util.Map<java.lang.String,java.lang.Object> attr,
                                INode parent,
                                float[] kern)

### FixedLeafUnicodeKern

    public FixedLeafUnicodeKern(java.lang.String name,
                                java.util.Map<java.lang.String,java.lang.Object> attr,
                                INode parent,
                                double kern)

  Constant kerning.

### FixedLeafUnicodeKern

    public FixedLeafUnicodeKern(java.lang.String name,
                                java.lang.String estr,
                                java.util.Map<java.lang.String,java.lang.Object> attr,
                                INode parent,
                                double kern)

Method Detail

### getKernAt

    public double getKernAt(int index)

### setKernAt

    public void setKernAt(int index,
                          double kern)

### append

    public void append(Leaf l)

  Description copied from class: `Leaf`
  Append leaf to the end of this one, adjusting content, spans, and so on. The appended leaf must either immediately follow this one in the tree, or be unattached to the tree. The appended leaf should be considered invalid and not used subsequently.

  Overrides:
    `append` in class `LeafText`

### append

    public void append(java.lang.String text,
                       java.lang.String estr)

  Overrides:
    `append` in class `LeafText`

### append

    public void append(java.lang.String text,
                       java.lang.String estr,
                       float kern)

  Append text with constant kerning between new characters.

### append

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

### formatNodeContent

    public boolean formatNodeContent(Context cx,
                                     int start,
                                     int end)

  Measurements adjusted by kerns.

  Overrides:
    `formatNodeContent` in class `FixedLeafUnicode`

### paintNodeContent

    public boolean paintNodeContent(Context cx,
                                    int start,
                                    int end)

  Chunk by kerns as well as spans.

  Overrides:
    `paintNodeContent` in class `LeafUnicode`

### subelementCalc

    public void subelementCalc(Context cx)

  Widths adjusted by kerns.

  Overrides:
    `subelementCalc` in class `LeafText`
  Parameters:
    `cx` - is up-to-date for this Node

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD