public class TextAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGERIAN |
static String |
ARIAL |
static int |
BOLD |
static int |
BOLD_ITALICS |
static int |
BOLD_ITALICS_UNDERLINED |
static int |
BOLD_UNDERLINED |
static String |
COURIER |
protected String |
endStyleTag |
static int |
EXTRA_LARGE |
protected String |
font |
static int |
HUGE |
static int |
ITALICS |
static int |
ITALICS_UNDERLINED |
static int |
LARGE |
static String |
MS_SERIF |
static int |
NORMAL |
static int |
REGULAR |
protected int |
size |
static int |
SMALL |
protected String |
startStyleTag |
protected int |
style |
static int |
SUBRAYADO |
static String |
SYMBOL |
static String |
SYSTEM |
static String |
TIMES_NEW_ROMAN |
static int |
VERY_LARGE |
static int |
VERY_SMALL |
static String |
WINDSORT |
| Constructor and Description |
|---|
TextAttributes()
Empty constructor.
|
TextAttributes(String fonttype,
int fontsize,
int fontstyle)
Builds an object
TextAttributes with specific values for
attributes. |
| Modifier and Type | Method and Description |
|---|---|
static TextAttributes |
getDefaultAttributes()
Creates and gets the default attributes: font type: COURIER; font-size:
SMALL and font-size: NORMAL.
|
String |
getEndTag()
Gets the end tag (...
|
String |
getStartTag()
Gets the start tag ().
|
void |
setFontSize(int fontsize) |
public static final String ALGERIAN
public static final String ARIAL
public static final String TIMES_NEW_ROMAN
public static final String COURIER
public static final String MS_SERIF
public static final String SYMBOL
public static final String SYSTEM
public static final String WINDSORT
public static final int BOLD
public static final int ITALICS
public static final int SUBRAYADO
public static final int BOLD_ITALICS
public static final int BOLD_UNDERLINED
public static final int ITALICS_UNDERLINED
public static final int BOLD_ITALICS_UNDERLINED
public static final int NORMAL
public static final int VERY_SMALL
public static final int SMALL
public static final int REGULAR
public static final int LARGE
public static final int VERY_LARGE
public static final int EXTRA_LARGE
public static final int HUGE
protected String font
protected int size
protected int style
protected String startStyleTag
protected String endStyleTag
public TextAttributes()
public TextAttributes(String fonttype, int fontsize, int fontstyle)
TextAttributes with specific values for
attributes.fonttype - The font typefontsize - The font sizefontstyle - The font stylepublic static TextAttributes getDefaultAttributes()
public String getStartTag()
public String getEndTag()
public void setFontSize(int fontsize)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.