net.sf.latexdraw.actions
Enum Export.ExportFormat

java.lang.Object
  extended by java.lang.Enum<Export.ExportFormat>
      extended by net.sf.latexdraw.actions.Export.ExportFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Export.ExportFormat>
Enclosing class:
Export

public static enum Export.ExportFormat
extends java.lang.Enum<Export.ExportFormat>

The enumeration defines the different formats managed to export drawing.

Author:
Arnaud Blouin

Enum Constant Summary
BMP
          The BMP format.
EPS_LATEX
          The latex format (using latex).
JPG
          The JPG format.
PDF
          The PDF format.
PDF_CROP
          The PDF format (using pdfcrop).
PNG
          The PNG format.
TEX
          The latex format.
 
Method Summary
abstract  java.lang.String getFileExtension()
           
abstract  javax.swing.filechooser.FileFilter getFilter()
           
static Export.ExportFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Export.ExportFormat[] 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

TEX

public static final Export.ExportFormat TEX
The latex format.


PDF

public static final Export.ExportFormat PDF
The PDF format.


EPS_LATEX

public static final Export.ExportFormat EPS_LATEX
The latex format (using latex).


PDF_CROP

public static final Export.ExportFormat PDF_CROP
The PDF format (using pdfcrop).


BMP

public static final Export.ExportFormat BMP
The BMP format.


PNG

public static final Export.ExportFormat PNG
The PNG format.


JPG

public static final Export.ExportFormat JPG
The JPG format.

Method Detail

values

public static Export.ExportFormat[] 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 (Export.ExportFormat c : Export.ExportFormat.values())
    System.out.println(c);

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

valueOf

public static Export.ExportFormat 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

getFilter

public abstract javax.swing.filechooser.FileFilter getFilter()
Returns:
The file filter corresponding to the format.
Since:
3.0

getFileExtension

public abstract java.lang.String getFileExtension()
Returns:
The extension corresponding to the format.
Since:
3.0