de.bsd.x2svg.outputConverter
Enum OutputType

java.lang.Object
  extended by java.lang.Enum<OutputType>
      extended by de.bsd.x2svg.outputConverter.OutputType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OutputType>

public enum OutputType
extends java.lang.Enum<OutputType>

An enumeration of output formats that we support.

Author:
hwr@pilhuhn.de

Enum Constant Summary
EPS
           
JPG
           
PDF
           
PNG
           
TIFF
           
 
Field Summary
private static java.util.Locale US_LOCALE
          The locale used to convert a type name to lowercase, en_US is safe here because all the originating characters are ASCII equivalent, so there is no need to consider changing case of special characters.
 
Method Summary
 java.lang.String asFileExtension()
          Get a String that represents the correct filename extension for this type.
static OutputType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OutputType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PDF

public static final OutputType PDF

EPS

public static final OutputType EPS

PNG

public static final OutputType PNG

TIFF

public static final OutputType TIFF

JPG

public static final OutputType JPG
Field Detail

US_LOCALE

private static final java.util.Locale US_LOCALE
The locale used to convert a type name to lowercase, en_US is safe here because all the originating characters are ASCII equivalent, so there is no need to consider changing case of special characters.

Method Detail

values

public static final OutputType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OutputType c : OutputType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static OutputType 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

asFileExtension

public java.lang.String asFileExtension()
Get a String that represents the correct filename extension for this type.

Returns:
The appropriate filename extension equivalent for this type.


x2svg version 1.2.1