edu.neu.ccs.gui
Class TextBounds

java.lang.Object
  extended byedu.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.

In 2.4.0, this class was updated to be consistent with refinements to the Paintable interface.

Since:
2.3
Version:
2.4.0

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.
 
Constructor Summary
private TextBounds()
          Private constructor to prevent instantiation.
 
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.

Constructor Detail

TextBounds

private TextBounds()
Private constructor to prevent instantiation.