multivalent.node
public class LeafText extends Leaf
Version: $Revision: 1.7 $ $Date: 2002/02/02 13:41:40 $
Field Summary | |
---|---|
protected String | estr_ Name is Unicode, these are characters encoded according to font that will draw them. |
protected static int[] | Widths_ Array of letter x-positions. |
Constructor Summary | |
---|---|
LeafText(String name, Map<String,Object> attr, INode parent) | |
LeafText(String name, String estr, Map<String,Object> attr, INode parent) |
Method Summary | |
---|---|
void | append(Leaf l) |
void | append(String text) |
void | append(String text, String estr) |
void | clipboardBeforeAfter(StringBuffer sb, int start, int end) |
void | clipboardNode(StringBuffer sb) |
String | getText() Returns Unicode text. |
Point | offset2rel(int offset) |
int | size() |
void | subelementCalc(Context cx)
Calculates an array of x-position at each letter in word. |
int | subelementHit(Point rel) |
Parameters: Context is up-to-date for this Node