net.sf.latexdraw.parsers.svg.parsers
Enum SVGLengthParser.FontSize
java.lang.Object
java.lang.Enum<SVGLengthParser.FontSize>
net.sf.latexdraw.parsers.svg.parsers.SVGLengthParser.FontSize
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SVGLengthParser.FontSize>
- Enclosing class:
- SVGLengthParser
public static enum SVGLengthParser.FontSize
- extends java.lang.Enum<SVGLengthParser.FontSize>
Describes textual value for the font-size attribute.
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 |
XXSMALL
public static final SVGLengthParser.FontSize XXSMALL
XSMALL
public static final SVGLengthParser.FontSize XSMALL
SMALL
public static final SVGLengthParser.FontSize SMALL
MEDIUM
public static final SVGLengthParser.FontSize MEDIUM
LARGE
public static final SVGLengthParser.FontSize LARGE
XLARGE
public static final SVGLengthParser.FontSize XLARGE
XXLARGE
public static final SVGLengthParser.FontSize XXLARGE
SCALING_FACTOR
public static final float SCALING_FACTOR
- See Also:
- Constant Field Values
values
public static SVGLengthParser.FontSize[] 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 (SVGLengthParser.FontSize c : SVGLengthParser.FontSize.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SVGLengthParser.FontSize 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
getPointValue
public abstract float getPointValue()
- Returns:
- The value in point of the token.
getToken
public abstract java.lang.String getToken()
- Returns:
- The token of the current font-size used in SVG documents.
getFontSize
public static float getFontSize(java.lang.String token)
- Parameters:
token
- The token to test.
- Returns:
- The value in point of the font-size given as argument, or -1
if 'token' is not valid.