| java.lang.Object nextapp.echo2.app.Font
Font | public class Font implements Serializable(Code) | | An immutable representation of a text font, including typeface, size, and
style.
|
Inner Class :public static class Typeface implements Serializable | |
Field Summary | |
final public static Typeface | ARIAL | final public static int | BOLD A style value indicating bold. | final public static Typeface | COURIER | final public static Typeface | COURIER_NEW | final public static Typeface | HELVETICA | final public static int | ITALIC A style value indicating bold. | final public static int | LINE_THROUGH A style value indicating line-through. | final public static Typeface | MONOSPACE | final public static int | OVERLINE A style value indicating overline. | final public static int | PLAIN A style value indicating no text attributes. | final public static Typeface | SANS_SERIF | final public static Typeface | SERIF | final public static Typeface | TIMES | final public static Typeface | TIMES_NEW_ROMAN | final public static Typeface | TIMES_ROMAN | final public static int | UNDERLINE A style value indicating underline. | final public static Typeface | VERDANA |
Constructor Summary | |
public | Font(Typeface typeface, int style, Extent size) Creates a new Font with the specified Typeface ,
size, and style. |
Method Summary | |
public boolean | equals(Object o) | public Extent | getSize() Returns the size of the font. | public Typeface | getTypeface() Returns the typeface of the font. | public boolean | isBold() Determines whether the font is bold. | public boolean | isItalic() Determines whether the font is italicized. | public boolean | isLineThrough() Determines whether the font has line-through enabled. | public boolean | isOverline() Determines whether the font has an overline. | public boolean | isPlain() Determines whether the font is plain (i.e., the font has no style
attributes set). | public boolean | isUnderline() Determines whether the font is underlined. | public String | toString() Renders a debug representation of the object. |
ARIAL | final public static Typeface ARIAL(Code) | | |
BOLD | final public static int BOLD(Code) | | A style value indicating bold.
|
COURIER | final public static Typeface COURIER(Code) | | |
COURIER_NEW | final public static Typeface COURIER_NEW(Code) | | |
HELVETICA | final public static Typeface HELVETICA(Code) | | |
ITALIC | final public static int ITALIC(Code) | | A style value indicating bold.
|
LINE_THROUGH | final public static int LINE_THROUGH(Code) | | A style value indicating line-through.
|
MONOSPACE | final public static Typeface MONOSPACE(Code) | | |
OVERLINE | final public static int OVERLINE(Code) | | A style value indicating overline.
|
PLAIN | final public static int PLAIN(Code) | | A style value indicating no text attributes.
|
SANS_SERIF | final public static Typeface SANS_SERIF(Code) | | |
SERIF | final public static Typeface SERIF(Code) | | |
TIMES | final public static Typeface TIMES(Code) | | |
TIMES_NEW_ROMAN | final public static Typeface TIMES_NEW_ROMAN(Code) | | |
TIMES_ROMAN | final public static Typeface TIMES_ROMAN(Code) | | |
UNDERLINE | final public static int UNDERLINE(Code) | | A style value indicating underline.
|
VERDANA | final public static Typeface VERDANA(Code) | | |
Font | public Font(Typeface typeface, int style, Extent size)(Code) | | Creates a new Font with the specified Typeface ,
size, and style.
Parameters: typeface - a Typeface describing the typeface of the font. Parameters: style - the style of the font, one or more of the following values:- PLAIN
- BOLD
- ITALIC
- OVERLINE
- LINE_THROUGH
- UNDERLINE
If it is necessary create a font with multiple style attributes,they should be bitwise-ORed together, using an expression such asBOLD | UNDERLINE . Parameters: size - the size of the font as a Extent |
getSize | public Extent getSize()(Code) | | Returns the size of the font.
the size of the font |
getTypeface | public Typeface getTypeface()(Code) | | Returns the typeface of the font.
the typeface of the font |
isBold | public boolean isBold()(Code) | | Determines whether the font is bold.
true if the font is bold |
isItalic | public boolean isItalic()(Code) | | Determines whether the font is italicized.
true if the font is italicized |
isLineThrough | public boolean isLineThrough()(Code) | | Determines whether the font has line-through enabled.
true if the font has line-through enabled |
isOverline | public boolean isOverline()(Code) | | Determines whether the font has an overline.
true if the font has an overline |
isPlain | public boolean isPlain()(Code) | | Determines whether the font is plain (i.e., the font has no style
attributes set).
true if the font is plain |
isUnderline | public boolean isUnderline()(Code) | | Determines whether the font is underlined.
true if the font is underlined |
|
|