public enum FontStyleParameter extends Enum<FontStyleParameter>
Enum Constant and Description |
---|
Bold |
BoldItalic |
Italic |
Plain |
Modifier and Type | Method and Description |
---|---|
int |
getNativeValue() |
Font |
toFont(FontFamilyParameter family,
int size) |
String |
toString() |
static FontStyleParameter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontStyleParameter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyleParameter Plain
public static final FontStyleParameter Bold
public static final FontStyleParameter Italic
public static final FontStyleParameter BoldItalic
public static FontStyleParameter[] values()
for (FontStyleParameter c : FontStyleParameter.values()) System.out.println(c);
public static FontStyleParameter 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 String toString()
toString
in class Enum<FontStyleParameter>
public Font toFont(FontFamilyParameter family, int size)
public int getNativeValue()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.