java.awt.font
Class TextJustifier

java.lang.Object
  extended byjava.awt.font.TextJustifier

class TextJustifier
extends Object


Field Summary
(package private) static boolean DEBUG
           
private  GlyphJustificationInfo[] info
           
private  int limit
           
static int MAX_PRIORITY
           
private  int start
           
 
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
 

Field Detail

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
Constructor Detail

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.

Method Detail

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.