Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.apps.rasterizer
Class DestinationType  view DestinationType download DestinationType.java

java.lang.Object
  extended byorg.apache.batik.apps.rasterizer.DestinationType

public final class DestinationType
extends java.lang.Object

Describes the type of destination for an SVGConverter operation.

Version:
$Id: DestinationType.java,v 1.6 2005/03/27 08:58:29 cam Exp $

Field Summary
private  int code
           
private  java.lang.String extension
           
static DestinationType JPEG
           
static int JPEG_CODE
           
static java.lang.String JPEG_EXTENSION
           
static java.lang.String JPEG_STR
           
static DestinationType PDF
           
static int PDF_CODE
           
static java.lang.String PDF_EXTENSION
           
static java.lang.String PDF_STR
           
static DestinationType PNG
           
static int PNG_CODE
           
static java.lang.String PNG_EXTENSION
           
static java.lang.String PNG_STR
           
static DestinationType TIFF
           
static int TIFF_CODE
           
static java.lang.String TIFF_EXTENSION
           
static java.lang.String TIFF_STR
           
private  java.lang.String type
           
 
Constructor Summary
private DestinationType(java.lang.String type, int code, java.lang.String extension)
           
 
Method Summary
 java.lang.String getExtension()
           
protected  org.apache.batik.transcoder.Transcoder getTranscoder()
          Returns a transcoder object of the result image type.
 DestinationType[] getValues()
          Defines valid image types.
 java.lang.Object readResolve()
           
 int toInt()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PNG_STR

public static final java.lang.String PNG_STR
See Also:
Constant Field Values

JPEG_STR

public static final java.lang.String JPEG_STR
See Also:
Constant Field Values

TIFF_STR

public static final java.lang.String TIFF_STR
See Also:
Constant Field Values

PDF_STR

public static final java.lang.String PDF_STR
See Also:
Constant Field Values

PNG_CODE

public static final int PNG_CODE
See Also:
Constant Field Values

JPEG_CODE

public static final int JPEG_CODE
See Also:
Constant Field Values

TIFF_CODE

public static final int TIFF_CODE
See Also:
Constant Field Values

PDF_CODE

public static final int PDF_CODE
See Also:
Constant Field Values

PNG_EXTENSION

public static final java.lang.String PNG_EXTENSION
See Also:
Constant Field Values

JPEG_EXTENSION

public static final java.lang.String JPEG_EXTENSION
See Also:
Constant Field Values

TIFF_EXTENSION

public static final java.lang.String TIFF_EXTENSION
See Also:
Constant Field Values

PDF_EXTENSION

public static final java.lang.String PDF_EXTENSION
See Also:
Constant Field Values

PNG

public static final DestinationType PNG

JPEG

public static final DestinationType JPEG

TIFF

public static final DestinationType TIFF

PDF

public static final DestinationType PDF

type

private java.lang.String type

code

private int code

extension

private java.lang.String extension
Constructor Detail

DestinationType

private DestinationType(java.lang.String type,
                        int code,
                        java.lang.String extension)
Method Detail

getExtension

public java.lang.String getExtension()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


toInt

public int toInt()

getTranscoder

protected org.apache.batik.transcoder.Transcoder getTranscoder()
Returns a transcoder object of the result image type.


getValues

public DestinationType[] getValues()
Defines valid image types.


readResolve

public java.lang.Object readResolve()