APIdia Launch Partner
Top Fields Constructors Methods
java.awt.font

pack-priv Class TextJustifier

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static boolean
private GlyphJustificationInfo[]
private int
public static final int
private int

Constructor Summary

AccessConstructor and Description
pack-priv
TextJustifier(GlyphJustificationInfo[] info, int start, int limit)

Initialize the justifier with an array of infos corresponding to each glyph.

Method Summary

Modifier and TypeMethod 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
pack-priv static boolean DEBUG
infoback to summary
private GlyphJustificationInfo[] info
limitback to summary
private int limit
MAX_PRIORITYback to summary
public static final int MAX_PRIORITY
startback to summary
private int start

Constructor Detail

TextJustifierback 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.

Method Detail

justifyback 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.