Enum JaxoLatexText.TextSize
- java.lang.Object
-
- java.lang.Enum<JaxoLatexText.TextSize>
-
- net.sf.jaxodraw.graph.object.text.JaxoLatexText.TextSize
-
- All Implemented Interfaces:
Serializable
,Comparable<JaxoLatexText.TextSize>
- Enclosing class:
- JaxoLatexText
public static enum JaxoLatexText.TextSize extends Enum<JaxoLatexText.TextSize>
Specify the latex text size.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOOTNOTESIZE
Latex text size footnotesize.HUGE
Latex text size huge.LARGE
Latex text size large.NORMALSIZE
Latex text size normalsize.SCRIPTSIZE
Latex text size scriptsize.SMALL
Latex text size small.TINY
Latex text size tiny.XHUGE
Latex text size Huge.XLARGE
Latex text size Large.XXLARGE
Latex text size LARGE.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
latexCommand()
Return the latex command for this size.int
size()
Return the size as an integer.static JaxoLatexText.TextSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static JaxoLatexText.TextSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TINY
public static final JaxoLatexText.TextSize TINY
Latex text size tiny.
-
SCRIPTSIZE
public static final JaxoLatexText.TextSize SCRIPTSIZE
Latex text size scriptsize.
-
FOOTNOTESIZE
public static final JaxoLatexText.TextSize FOOTNOTESIZE
Latex text size footnotesize.
-
SMALL
public static final JaxoLatexText.TextSize SMALL
Latex text size small.
-
NORMALSIZE
public static final JaxoLatexText.TextSize NORMALSIZE
Latex text size normalsize.
-
LARGE
public static final JaxoLatexText.TextSize LARGE
Latex text size large.
-
XLARGE
public static final JaxoLatexText.TextSize XLARGE
Latex text size Large.
-
XXLARGE
public static final JaxoLatexText.TextSize XXLARGE
Latex text size LARGE.
-
HUGE
public static final JaxoLatexText.TextSize HUGE
Latex text size huge.
-
XHUGE
public static final JaxoLatexText.TextSize XHUGE
Latex text size Huge.
-
-
Method Detail
-
values
public static JaxoLatexText.TextSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JaxoLatexText.TextSize c : JaxoLatexText.TextSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JaxoLatexText.TextSize valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
size
public int size()
Return the size as an integer.- Returns:
- the size.
-
latexCommand
public String latexCommand()
Return the latex command for this size.- Returns:
- the latex command.
-
-