Sharkysoft home

lava.text
Class CROP

java.lang.Object
  |
  +--lava.text.CROP

public class CROP
extends java.lang.Object

An enumeration of text cropping styles. Cropping occurs when the text is longer than the region where it will be displayed.

See Also:
lava.string.StringJustifier

Field Summary
static int LEFT
          Indicates that the left-most portion of the text should be cropped.
static int MIDDLE
          Indicates that a segment from the middle of the text should be omitted.
static int NONE
          Indicates that the text should not be cropped.
static int RIGHT
          Indicates that the right-most portion of the text should be cropped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Indicates that the text should not be cropped.

RIGHT

public static final int RIGHT
Indicates that the right-most portion of the text should be cropped.

LEFT

public static final int LEFT
Indicates that the left-most portion of the text should be cropped.

MIDDLE

public static final int MIDDLE
Indicates that a segment from the middle of the text should be omitted. (And perhaps replaced with ellipses or other mark.)

Sharkysoft home