java.awt.font
Class TextJustifier
java.lang.Object
java.awt.font.TextJustifier
- class TextJustifier
- extends Object
Constructor Summary |
(package private) |
TextJustifier(GlyphJustificationInfo[] info,
int start,
int limit)
Initialize the justifier with an array of infos corresponding to each
glyph. |
Method Summary |
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.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
info
private GlyphJustificationInfo[] info
start
private int start
limit
private int limit
DEBUG
static boolean DEBUG
MAX_PRIORITY
public static final int MAX_PRIORITY
- See Also:
- Constant Field Values
TextJustifier
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
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.