sharkysoft.com

com.sharkysoft.printf.engine
Class CroppingMode

java.lang.Object
  extended bycom.sharkysoft.util.EnumeratedType
      extended bycom.sharkysoft.printf.engine.CroppingMode
All Implemented Interfaces:
java.lang.Comparable

public final class CroppingMode
extends com.sharkysoft.util.EnumeratedType

Text cropping styles.

Details: CroppingMode is an enumeration of text cropping modes. Cropping occurs when text larger than the field in which it is displayed.

Author:
Sharky

Field Summary
static CroppingMode gpLeft
          Left cropping.
static CroppingMode gpMiddle
          Middle cropping.
static CroppingMode gpNone
          No cropping.
static CroppingMode gpRight
          Right cropping.
static int LEFT
          Left cropping.
static int MIDDLE
          Middle cropping.
static int NONE
          No cropping.
static int RIGHT
          Right cropping.
 
Method Summary
static CroppingMode forInt(int inValue)
          Converts int value to object value.
 
Methods inherited from class com.sharkysoft.util.EnumeratedType
compareTo, toEnumeratedType, toInt, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
No cropping.

Details: NONE indicates the text is not cropped.

See Also:
Constant Field Values

gpNone

public static final CroppingMode gpNone
No cropping.

Details: gpNone is a type-safe representation of NONE.


RIGHT

public static final int RIGHT
Right cropping.

Details: RIGHT indicates that the right-most portion of the text is cropped.

See Also:
Constant Field Values

gpRight

public static final CroppingMode gpRight
Right cropping.

Details: gpRight is a type-safe representation of RIGHT.


LEFT

public static final int LEFT
Left cropping.

Details: LEFT indicates that the left-most portion of the text is cropped.

See Also:
Constant Field Values

gpLeft

public static final CroppingMode gpLeft
Left cropping.

Details: gpLeft is a type-safe representation of LEFT.


MIDDLE

public static final int MIDDLE
Middle cropping.

Details: MIDDLE indicates that a center portion of the text may be cropped (and perhaps replaced with ellipses).

See Also:
Constant Field Values

gpMiddle

public static final CroppingMode gpMiddle
Middle cropping.

Details: gpMiddle is a type-safe representation of MIDDLE.

Method Detail

forInt

public static CroppingMode forInt(int inValue)
Converts int value to object value.

Details: forInt returns the type-safe object value corresponding to the given int value.

Parameters:
inValue - int value
Returns:
type-safe object value

sharkysoft.com

Copyright © 1997-2004 Sharkysoft (sharkysoft.com). All rights reserved.