|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final int HALIGN_MASK
DrawStyle.HCENTER
,
DrawStyle.HDEFAULT
,
DrawStyle.HFULL
,
DrawStyle.LEFT
,
DrawStyle.RIGHT
,
Constant Field Valuesstatic final int HDEFAULT
static final int LEADING
Indicates the contents should be aligned with the leading edge of a control, for example, for right-to-left orientations.
static final int TRAILING
Indicates the contents should be aligned with the traling edge of a control, for example, for right-to-left orientations.
static final int LEFT
static final int RIGHT
static final int HCENTER
static final int HFULL
static final int VALIGN_MASK
DrawStyle.BASELINE
,
DrawStyle.BOTTOM
,
DrawStyle.TOP
,
DrawStyle.VCENTER
,
DrawStyle.VDEFAULT
,
DrawStyle.VFULL
,
Constant Field Valuesstatic final int VDEFAULT
static final int TOP
static final int BOTTOM
static final int VCENTER
static final int VFULL
static final int BASELINE
static final int ELLIPSIS
static final int TRUNCATE_BEGINNING
With DrawStyle.ELLIPSIS
, the ellipsis will show up at the front.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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