edu.neu.ccs.gui
Class TextBounds

java.lang.Object
  |
  +--edu.neu.ccs.gui.TextBounds

public class TextBounds
extends Object

The TextBounds class defines an interface that specifies how to compute accurate bounds for a TextPaintable.

The TextBounds class also defines static objects that implement the interface it defines.

The TextBounds class cannot be instantiated.

Since:
2.3

Nested Class Summary
static interface TextBounds.Strategy
          The Strategy interface defines the call-back method needed to compute accurate bounds for a TextPaintable.
 
Field Summary
static TextBounds.Strategy LOOSE
          The LOOSE Strategy produces loose bounds on the TextPaintable by calling the method getLooseBounds.
static TextBounds.Strategy TIGHT
          The TIGHT Strategy produces tight bounds on the TextPaintable by calling the method getTightBounds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIGHT

public static TextBounds.Strategy TIGHT

The TIGHT Strategy produces tight bounds on the TextPaintable by calling the method getTightBounds.


LOOSE

public static TextBounds.Strategy LOOSE

The LOOSE Strategy produces loose bounds on the TextPaintable by calling the method getLooseBounds.