net.sf.epsgraphics
Class EpsTools

java.lang.Object
  extended by net.sf.epsgraphics.EpsTools

public class EpsTools
extends java.lang.Object

Contains utility method to create an EPS figure from an object that implements the Drawable interface.

Author:
Thomas Abeel

Method Summary
static boolean createFromDrawable(Drawable d, java.lang.String fileName, int x, int y, ColorMode colorMode)
          Method to export a drawable object to an EPS file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFromDrawable

public static boolean createFromDrawable(Drawable d,
                                         java.lang.String fileName,
                                         int x,
                                         int y,
                                         ColorMode colorMode)
Method to export a drawable object to an EPS file.

Parameters:
d - the drawable object
fileName - the file name of the EPS file
x - the width of the exported graphic
y - the height of the exported graphic
colorMode - the colormode to be used
Returns:
true when the export is succesful, false in other cases


Copyright © 2007-2009 - Thomas Abeel - All Rights Reserved.