de.lmu.ifi.dbs.elki.evaluation.similaritymatrix
Class ComputeSimilarityMatrixImage.SimilarityMatrix

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.evaluation.similaritymatrix.ComputeSimilarityMatrixImage.SimilarityMatrix
All Implemented Interfaces:
PixmapResult, Result
Enclosing class:
ComputeSimilarityMatrixImage<O>

public static class ComputeSimilarityMatrixImage.SimilarityMatrix
extends Object
implements PixmapResult

Similarity matrix image.


Field Summary
(package private)  ArrayDBIDs ids
          The database IDs used
(package private)  RenderedImage img
          Our image
(package private)  File imgfile
          The file we have written the image to
private static String IMGFILEPREFIX
          Prefix for filenames
(package private)  Relation<?> relation
          The database
 
Constructor Summary
ComputeSimilarityMatrixImage.SimilarityMatrix(RenderedImage img, Relation<?> relation, ArrayDBIDs ids)
          Constructor
 
Method Summary
 File getAsFile()
          Get the image result as file (usually a temporary file).
 ArrayDBIDs getIDs()
          Get the IDs
 RenderedImage getImage()
          Get the image pixmap
 String getLongName()
          A "pretty" name for the result, for use in titles, captions and menus.
 Relation<?> getRelation()
          Get the relation
 String getShortName()
          A short name for the result, useful for file names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMGFILEPREFIX

private static final String IMGFILEPREFIX
Prefix for filenames

See Also:
Constant Field Values

relation

Relation<?> relation
The database


ids

ArrayDBIDs ids
The database IDs used


img

RenderedImage img
Our image


imgfile

File imgfile
The file we have written the image to

Constructor Detail

ComputeSimilarityMatrixImage.SimilarityMatrix

public ComputeSimilarityMatrixImage.SimilarityMatrix(RenderedImage img,
                                                     Relation<?> relation,
                                                     ArrayDBIDs ids)
Constructor

Parameters:
img - Image data
Method Detail

getImage

public RenderedImage getImage()
Description copied from interface: PixmapResult
Get the image pixmap

Specified by:
getImage in interface PixmapResult
Returns:
the image pixmap

getAsFile

public File getAsFile()
Description copied from interface: PixmapResult
Get the image result as file (usually a temporary file).

Specified by:
getAsFile in interface PixmapResult
Returns:
Image file

getRelation

public Relation<?> getRelation()
Get the relation

Returns:
the relation

getIDs

public ArrayDBIDs getIDs()
Get the IDs

Returns:
the ids

getLongName

public String getLongName()
Description copied from interface: Result
A "pretty" name for the result, for use in titles, captions and menus.

Specified by:
getLongName in interface Result
Returns:
result name

getShortName

public String getShortName()
Description copied from interface: Result
A short name for the result, useful for file names.

Specified by:
getShortName in interface Result
Returns:
result name

Release 0.4.0 (2011-09-20_1324)