public class Cluster
extends java.lang.Object
| Constructor and Description |
|---|
Cluster(int[] codepoints,
Glyph[] glyphs)
Initializes new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Cluster |
deepClone()
Returns a deep clone of this instance.
|
int[] |
getCodepoints()
Gets codepoints of the cluster.
|
int |
getCodepointsLength()
Gets total number of codepoints in the
Cluster. |
Glyph[] |
getGlyphs()
Gets glyphs of the cluster.
|
java.lang.String |
getString()
Creates
String using codepoints from this cluster. |
static java.lang.String |
getString(Cluster[] clusters)
Creates
String using codepoints from the specified clusters. |
float |
getWidth(int em,
float fontSize)
Returns width of the cluster.
|
public int[] getCodepoints()
public int getCodepointsLength()
Cluster.Cluster.public Glyph[] getGlyphs()
public float getWidth(int em,
float fontSize)
public static java.lang.String getString(Cluster[] clusters)
String using codepoints from the specified clusters.public java.lang.String getString()
String using codepoints from this cluster.public Cluster deepClone()