Java Reference
In-Depth Information
Attribute
Description
Valid Values
backcolor
Indicates the text background
color.
Refer to the valid values of
forecolor given in the
preceding row.
hAlign
Indicates the horizontal
alignment of the element.
Center , Justified , Left ,
Right
vAlign
Indicates the vertical
alignment of the element.
Bottom , Middle , Top
border
Indicate the element border.
1Point , 2Point , 4Point ,
Dotted , None , Thin
borderColor
Indicates the border color.
Refer to the given valid
values of forecolor .
padding
The amount of spacing
between the element and
its border.
An integer indicating the
amount of padding (in pixels)
to use.
fontName
Indicates what font to use for
the element.
A String indicating the font
to use.
fontSize
Indicates the size of the font. An integer indicating the text
size to use.
isBold
Indicates whether the font
is bold.
true , false
isItalic
Indicates whether the font
is italic.
true , false
IsUnderline
Indicates whether the font
is underlined.
true , false
isStrikeThrough
Indicates whether the font
is strikethrough style.
true , false
lineSpacing
Determines the spacing
between lines of text. A value
of 1_1_2 indicates a line and
a half of space between lines
of text.
1_1_2 , Double , Single
rotation
Indicates the element direction
by rotating it 90 degrees in the
specified direction.
Left , None , Right
isStyledText
Indicates whether the element
text is styled.
true , false
All the attributes that are not specific to textual information �padding, border,
etc.) can be used not only for textual elements, but also for any kind of element.
The isStyledText attribute is used to allow segments of the text to be styled
individually. This is covered in detail, later in this chapter.
Search WWH ::




Custom Search