net.sf.latexdraw.glib.models.interfaces
Enum IText.TextSize

java.lang.Object
  extended by java.lang.Enum<IText.TextSize>
      extended by net.sf.latexdraw.glib.models.interfaces.IText.TextSize
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IText.TextSize>
Enclosing interface:
IText

public static enum IText.TextSize
extends java.lang.Enum<IText.TextSize>

This enumeration defines the concept of text size for latex texts.


Enum Constant Summary
FOOTNOTE
          \footnotesize size
HUGE1
          \huge size
HUGE2
          \Huge size
LARGE1
          \large size
LARGE2
          \Large size
LARGE3
          \LARGE size
NORMAL
          \small size
SCRIPT
          \scriptsize size
SMALL
          \small size
TINY
          \tiny size
 
Method Summary
abstract  java.lang.String getLatexToken()
           
static IText.TextSize getTextSizeFromSize(int size)
           
static IText.TextSize getTextSizeFromToken(java.lang.String token)
           
static IText.TextSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IText.TextSize[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TINY

public static final IText.TextSize TINY
\tiny size


SCRIPT

public static final IText.TextSize SCRIPT
\scriptsize size


FOOTNOTE

public static final IText.TextSize FOOTNOTE
\footnotesize size


SMALL

public static final IText.TextSize SMALL
\small size


NORMAL

public static final IText.TextSize NORMAL
\small size


LARGE1

public static final IText.TextSize LARGE1
\large size


LARGE2

public static final IText.TextSize LARGE2
\Large size


LARGE3

public static final IText.TextSize LARGE3
\LARGE size


HUGE1

public static final IText.TextSize HUGE1
\huge size


HUGE2

public static final IText.TextSize HUGE2
\Huge size

Method Detail

values

public static IText.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 (IText.TextSize c : IText.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 IText.TextSize valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getLatexToken

public abstract java.lang.String getLatexToken()
Returns:
The latex token corresponding to the text size.
Since:
3.0

getTextSizeFromToken

public static IText.TextSize getTextSizeFromToken(java.lang.String token)
Parameters:
token - The token to analyse.
Returns:
The text size corresponding to the given latex token or null.
Since:
3.0

getTextSizeFromSize

public static IText.TextSize getTextSizeFromSize(int size)
Parameters:
size - The text size value to analyse.
Returns:
The corresponding text size item or null.
Since:
3.0