de.lmu.ifi.dbs.elki.visualization.visualizers.thumbs
Class Thumbnailer

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.thumbs.Thumbnailer

public class Thumbnailer
extends Object

Class that will render a SVGPlot into a File as thumbnail. Note: this does not happen in the background - call it from your own Thread if you need that!


Field Summary
private static String DEFAULT_PREFIX
          Default prefix
private  String prefix
          Prefix storage.
 
Constructor Summary
Thumbnailer()
          Constructor
Thumbnailer(String prefix)
          Constructor
 
Method Summary
 File thumbnail(SVGPlot plot, int thumbwidth, int thumbheight)
          Generate a thumbnail for a given plot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PREFIX

private static final String DEFAULT_PREFIX
Default prefix

See Also:
Constant Field Values

prefix

private String prefix
Prefix storage.

Constructor Detail

Thumbnailer

public Thumbnailer(String prefix)
Constructor

Parameters:
prefix - Filename prefix to avoid collisions (e.g "elki-")

Thumbnailer

public Thumbnailer()
Constructor

Method Detail

thumbnail

public File thumbnail(SVGPlot plot,
                      int thumbwidth,
                      int thumbheight)
Generate a thumbnail for a given plot.

Parameters:
plot - Plot to use
thumbwidth - Width of the thumbnail
thumbheight - height of the thumbnail
Returns:
File object of the thumbnail, which has deleteOnExit set.

Release 0.4.0 (2011-09-20_1324)