net.rim.device.api.ui
Interface DrawStyle

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

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.
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.
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

HALIGN_MASK

static final int HALIGN_MASK
Specifies the horizontial alignment.

See Also:
DrawStyle.HCENTER, DrawStyle.HDEFAULT, DrawStyle.HFULL, DrawStyle.LEFT, DrawStyle.RIGHT, Constant Field Values

HDEFAULT

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

See Also:
Constant Field Values

LEADING

static final int LEADING
Leading horizontal alignment.

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

See Also:
Constant Field Values

TRAILING

static final int TRAILING
Trailing horizontal alignment.

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

See Also:
Constant Field Values

LEFT

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

See Also:
Constant Field Values

RIGHT

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

See Also:
Constant Field Values

HCENTER

static final int HCENTER
Drawing position for horizontally centered text.

See Also:
Constant Field Values

HFULL

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

See Also:
Constant Field Values

VALIGN_MASK

static final int VALIGN_MASK
Specifies the vertical alignment.

See Also:
DrawStyle.BASELINE, DrawStyle.BOTTOM, DrawStyle.TOP, DrawStyle.VCENTER, DrawStyle.VDEFAULT, DrawStyle.VFULL, Constant Field Values

VDEFAULT

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

See Also:
Constant Field Values

TOP

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

See Also:
Constant Field Values

BOTTOM

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

See Also:
Constant Field Values

VCENTER

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

See Also:
Constant Field Values

VFULL

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

See Also:
Constant Field Values

BASELINE

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

See Also:
Constant Field Values

ELLIPSIS

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

See Also:
Constant Field Values

TRUNCATE_BEGINNING

static final int TRUNCATE_BEGINNING
Truncates the start of the text.

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

See Also:
Constant Field Values





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal