|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.elements.support.attributes.MathVariant
public final class MathVariant
Class to represent and use MathVariants.
| Field Summary | |
|---|---|
static MathVariant |
BOLD
Mathvariant constant. |
static MathVariant |
BOLD_FRAKTUR
Mathvariant constant. |
static MathVariant |
BOLD_ITALIC
Mathvariant constant. |
static MathVariant |
BOLD_SANS_SERIF
Mathvariant constant. |
static MathVariant |
BOLD_SCRIPT
Mathvariant constant. |
static MathVariant |
DOUBLE_STRUCK
Mathvariant constant. |
static MathVariant |
FRAKTUR
Mathvariant constant. |
static MathVariant |
ITALIC
Mathvariant constant. |
static MathVariant |
MONOSPACE
Mathvariant constant. |
static MathVariant |
NORMAL
Mathvariant constant. |
static MathVariant |
SANS_SERIF
Mathvariant constant. |
static MathVariant |
SANS_SERIF_BOLD_ITALIC
Mathvariant constant. |
static MathVariant |
SANS_SERIF_ITALIC
Mathvariant constant. |
static MathVariant |
SCRIPT
Mathvariant constant. |
| Constructor Summary | |
|---|---|
MathVariant(int awtstyle,
FontFamily family)
Creates a Mathvariant with the given AWT-Style and font-family. |
|
| Method Summary | |
|---|---|
Font |
createFont(float size,
int codepoint,
LayoutContext context,
boolean force)
Create a font for the given attributes. |
boolean |
equals(Object obj)
|
int |
getAwtStyle()
|
FontFamily |
getFontFamily()
|
int |
hashCode()
|
static MathVariant |
stringToMathVariant(String variant)
Creates a Mathvariant object from an attribute value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MathVariant BOLD
public static final MathVariant BOLD_FRAKTUR
public static final MathVariant BOLD_ITALIC
public static final MathVariant BOLD_SANS_SERIF
public static final MathVariant BOLD_SCRIPT
public static final MathVariant DOUBLE_STRUCK
public static final MathVariant FRAKTUR
public static final MathVariant ITALIC
public static final MathVariant MONOSPACE
public static final MathVariant NORMAL
public static final MathVariant SANS_SERIF
public static final MathVariant SANS_SERIF_BOLD_ITALIC
public static final MathVariant SANS_SERIF_ITALIC
public static final MathVariant SCRIPT
| Constructor Detail |
|---|
public MathVariant(int awtstyle,
FontFamily family)
awtstyle - the awt Stylefamily - the font family| Method Detail |
|---|
public static MathVariant stringToMathVariant(String variant)
variant - the string representation of the attribute value
public Font createFont(float size,
int codepoint,
LayoutContext context,
boolean force)
size - size of the font to createcodepoint - a character that must exist in this fontcontext - LayoutContext to use.force - if true will always return a font, otherwise will return
null.
public int getAwtStyle()
public FontFamily getFontFamily()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||