net.rim.device.api.ui
Interface DrawStyle

All Known Implementing Classes:
Graphics, ObjectListField, LabelField, DateField, ButtonField, BitmapField

public interface DrawStyle

Provides drawing styles used by graphics and field objects.

Note that all the drawing position static members are intended for use with Graphics.drawText.


Field Summary
static int BASELINE
          Drawing position for the baseline of the text.
static int BOTTOM
          Drawing position for the bottom of the text.
static int ELLIPSIS
          Drawing position style to indicate use of ellipsis for text that is too long to draw.
static int HALIGN_MASK
          Specifies the horizontial alignment.
static int HCENTER
          Drawing position for horizontally centered text.
static int HDEFAULT
          Default horizontal alignment, depending on context.
static int HFULL
          Drawing position for full justification of text (not yet implemented).
static int LEADING
          Leading horizontal alignment (reserved for future use).
static int LEFT
          Drawing position for left-aligned text.
static int RIGHT
          Drawing position for right-aligned text.
static int TOP
          Drawing position for the top of the text.
static int TRAILING
          Trailing horizontal alignment (reserved for future use).
static int TRUNCATE_BEGINNING
          Truncates the start of the text.
static int VALIGN_MASK
          Specifies the vertical alignment.
static int VCENTER
          Drawing position for the vertical center of the text.
static int VDEFAULT
          Default vertical alignment, depending on context.
static int VFULL
          Drawing position for the vertical full of the text.
 

Field Detail

BASELINE

public static final int BASELINE
Drawing position for the baseline of the text.

BOTTOM

public static final int BOTTOM
Drawing position for the bottom of the text.

ELLIPSIS

public static final int ELLIPSIS
Drawing position style to indicate use of ellipsis for text that is too long to draw.

HALIGN_MASK

public static final int HALIGN_MASK
Specifies the horizontial alignment.
See Also:
HCENTER, HDEFAULT, HFULL, LEFT, RIGHT

HCENTER

public static final int HCENTER
Drawing position for horizontally centered text.

HDEFAULT

public static final int HDEFAULT
Default horizontal alignment, depending on context.

HFULL

public static final int HFULL
Drawing position for full justification of text (not yet implemented).

LEADING

public static final int LEADING
Leading horizontal alignment (reserved for future use).

Indicates the contents should be aligned with the leading edge of a control, for example, for right-to-left orientations.


LEFT

public static final int LEFT
Drawing position for left-aligned text.

RIGHT

public static final int RIGHT
Drawing position for right-aligned text.

TOP

public static final int TOP
Drawing position for the top of the text.

TRAILING

public static final int TRAILING
Trailing horizontal alignment (reserved for future use).

Indicates the contents should be aligned with the traling edge of a control, for example, for right-to-left orientations.


TRUNCATE_BEGINNING

public static final int TRUNCATE_BEGINNING
Truncates the start of the text.

With ELLIPSIS, the ellipsis will show up at the front.


VALIGN_MASK

public static final int VALIGN_MASK
Specifies the vertical alignment.
See Also:
BASELINE, BOTTOM, TOP, VCENTER, VDEFAULT, VFULL

VCENTER

public static final int VCENTER
Drawing position for the vertical center of the text.

VDEFAULT

public static final int VDEFAULT
Default vertical alignment, depending on context.

VFULL

public static final int VFULL
Drawing position for the vertical full of the text.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.