public enum StandardFonts extends Enum<StandardFonts>
| Enum Constant and Description |
|---|
COURIER |
COURIER_BOLD |
COURIER_BOLDITALIC |
COURIER_ITALIC |
HELVETICA |
HELVETICA_BOLD |
HELVETICA_BOLDITALIC |
HELVETICA_ITALIC |
SYMBOL |
TIMES |
TIMES_BOLD |
TIMES_BOLDITALIC |
TIMES_ITALIC |
ZAPFDINGBATS |
| Modifier and Type | Method and Description |
|---|---|
Font |
create() |
Font |
create(int size) |
boolean |
isDeprecated() |
static StandardFonts |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardFonts[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardFonts COURIER
public static final StandardFonts COURIER_ITALIC
public static final StandardFonts COURIER_BOLD
public static final StandardFonts COURIER_BOLDITALIC
public static final StandardFonts HELVETICA
public static final StandardFonts HELVETICA_ITALIC
public static final StandardFonts HELVETICA_BOLD
public static final StandardFonts HELVETICA_BOLDITALIC
public static final StandardFonts TIMES
public static final StandardFonts TIMES_ITALIC
public static final StandardFonts TIMES_BOLD
public static final StandardFonts TIMES_BOLDITALIC
public static final StandardFonts SYMBOL
public static final StandardFonts ZAPFDINGBATS
public static StandardFonts[] values()
for (StandardFonts c : StandardFonts.values()) System.out.println(c);
public static StandardFonts valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Font create() throws IOException
IOExceptionpublic Font create(int size) throws IOException
IOExceptionpublic boolean isDeprecated()
Copyright © 2024. All rights reserved.