org.mvdb.maven.plugins.svg
Class SVGConverter

java.lang.Object
  extended by org.mvdb.maven.plugins.svg.SVGConverter

public class SVGConverter
extends java.lang.Object

This class converts svg images to png, jpg and tiff.

Version:
$Id: SVGConverter.java,v 1.5 2005/12/09 20:41:15 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
SVGConverter()
           
 
Method Summary
 void convert()
          Converts the svg to the type specified in getType() It defaults to png.
protected  void convertTo(org.apache.batik.transcoder.image.ImageTranscoder transcoder, java.lang.String extension)
          Converts the svg file to the target file
 void convertToJPG()
          Convert the svg to JPEG format
 void convertToPNG()
          Convert the svg to PNG format
 java.lang.String getDestination()
           
 java.lang.String getFile()
           
 java.lang.String getType()
           
 void setDestination(java.lang.String destination)
           
 void setFile(java.lang.String file)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGConverter

public SVGConverter()
Method Detail

convert

public void convert()
Converts the svg to the type specified in getType() It defaults to png.


convertToPNG

public void convertToPNG()
Convert the svg to PNG format


convertToJPG

public void convertToJPG()
Convert the svg to JPEG format


convertTo

protected void convertTo(org.apache.batik.transcoder.image.ImageTranscoder transcoder,
                         java.lang.String extension)
Converts the svg file to the target file

Parameters:
transcoder - the transcoder to use
extension - the filename extension to use

getDestination

public java.lang.String getDestination()
Returns:
the destination

getFile

public java.lang.String getFile()
Returns:
the file

getType

public java.lang.String getType()
Returns:
the type

setDestination

public void setDestination(java.lang.String destination)
Parameters:
destination - the destination

setFile

public void setFile(java.lang.String file)
Parameters:
file - the file

setType

public void setType(java.lang.String type)
Parameters:
type - the type


Copyright © 2003-2005 mvdb.org. All Rights Reserved.