org.foray.app
Enum OutputTargetType

java.lang.Object
  extended by java.lang.Enum<OutputTargetType>
      extended by org.foray.app.OutputTargetType
All Implemented Interfaces:
Serializable, Comparable<OutputTargetType>

public enum OutputTargetType
extends Enum<OutputTargetType>

Enumeration of the various output options for FOray.


Enum Constant Summary
AWT
          Render to a GUI window.
MIF
          Render to MIF.
PCL
          Render to PCL.
PDF
          Render to PDF.
PRINT
          Render to PRINT.
PS
          Render to Postscript.
SVG
          Render to SVG.
TXT
          Render to Text.
XML
          Render to XML.
 
Method Summary
 String getFileExtension()
          Returns the file extension used for this output target type.
 boolean requiresOutputStream()
          Indicates whether this output target requires an output stream.
static OutputTargetType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OutputTargetType[] 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

PDF

public static final OutputTargetType PDF
Render to PDF.


AWT

public static final OutputTargetType AWT
Render to a GUI window.


MIF

public static final OutputTargetType MIF
Render to MIF.


XML

public static final OutputTargetType XML
Render to XML.


PRINT

public static final OutputTargetType PRINT
Render to PRINT.


PCL

public static final OutputTargetType PCL
Render to PCL.


PS

public static final OutputTargetType PS
Render to Postscript.


TXT

public static final OutputTargetType TXT
Render to Text.


SVG

public static final OutputTargetType SVG
Render to SVG.

Method Detail

values

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

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

valueOf

public static OutputTargetType 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 name
NullPointerException - if the argument is null

requiresOutputStream

public boolean requiresOutputStream()
Indicates whether this output target requires an output stream.

Returns:
True iff this output target type requires an output stream.

getFileExtension

public String getFileExtension()
Returns the file extension used for this output target type.

Returns:
The file extension used for this output target type.


Copyright © 2017. All rights reserved.