| Modifier and Type | Field and Description |
|---|---|
| pack-priv static boolean | |
| private GlyphJustificationInfo[] | |
| private int | |
| public static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | TextJustifier(GlyphJustificationInfo[] info, int start, int limit)
Initialize the justifier with an array of infos corresponding to each glyph. |
| Modifier and Type | Method and Description |
|---|---|
| public float[] | justify(float delta)
Return an array of deltas twice as long as the original info array, indicating the amount by which each side of each glyph should grow or shrink. |
| DEBUG | back to summary |
|---|---|
| pack-priv static boolean DEBUG | |
| info | back to summary |
|---|---|
| private GlyphJustificationInfo[] info | |
| limit | back to summary |
|---|---|
| private int limit | |
| MAX_PRIORITY | back to summary |
|---|---|
| public static final int MAX_PRIORITY | |
| start | back to summary |
|---|---|
| private int start | |
| TextJustifier | back to summary |
|---|---|
| pack-priv TextJustifier(GlyphJustificationInfo[] info, int start, int limit) Initialize the justifier with an array of infos corresponding to each glyph. Start and limit indicate the range of the array to examine. | |
| justify | back to summary |
|---|---|
| public float[] justify(float delta) Return an array of deltas twice as long as the original info array, indicating the amount by which each side of each glyph should grow or shrink. Delta should be positive to expand the line, and negative to compress it. | |