com.mizar.trinidad.components.basemap
Class Thumbnail

java.lang.Object
  extended by com.mizar.trinidad.components.basemap.Thumbnail

public class Thumbnail
extends java.lang.Object


Constructor Summary
Thumbnail()
           
Thumbnail(java.lang.String imgFileName, java.lang.String outDir, int containerWidth, int containerHeight, boolean fitToControl)
           
Thumbnail(java.lang.String imgFileName, java.lang.String outDir, java.lang.String relativePath, int containerWidth, int containerHeight, int imageType, boolean fitToControl)
           
 
Method Summary
 void cleanFile()
           
static java.awt.image.BufferedImage createThumbnail(java.lang.String sourceFileName, int width, int height, int imageType)
           
static java.awt.image.BufferedImage createThumbnailFitTo(java.lang.String sourceFileName, int cwidth, int cheight, int imageType)
           
 java.lang.String getCompleteFileName()
           
 java.lang.String getImgFileName()
           
 java.lang.String getOutDir()
           
 java.lang.String getRelativePath()
           
 java.lang.String getThumbFileName()
           
 java.net.URI getUri()
           
 java.lang.String getUriString()
           
static void main(java.lang.String[] args)
           
 void setImgFileName(java.lang.String imgName)
           
 void setOutDir(java.lang.String outDir)
           
 void setRelativePath(java.lang.String relativePath)
           
 void setThumbFileName(java.lang.String thumbFileName)
           
 void setUri(java.net.URI uri)
           
 void setUriString(java.lang.String uriString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thumbnail

public Thumbnail()

Thumbnail

public Thumbnail(java.lang.String imgFileName,
                 java.lang.String outDir,
                 java.lang.String relativePath,
                 int containerWidth,
                 int containerHeight,
                 int imageType,
                 boolean fitToControl)
          throws java.lang.Exception
Throws:
java.lang.Exception

Thumbnail

public Thumbnail(java.lang.String imgFileName,
                 java.lang.String outDir,
                 int containerWidth,
                 int containerHeight,
                 boolean fitToControl)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

createThumbnailFitTo

public static java.awt.image.BufferedImage createThumbnailFitTo(java.lang.String sourceFileName,
                                                                int cwidth,
                                                                int cheight,
                                                                int imageType)
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

createThumbnail

public static java.awt.image.BufferedImage createThumbnail(java.lang.String sourceFileName,
                                                           int width,
                                                           int height,
                                                           int imageType)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getCompleteFileName

public java.lang.String getCompleteFileName()

cleanFile

public void cleanFile()
               throws java.lang.Exception
Throws:
java.lang.Exception

setImgFileName

public void setImgFileName(java.lang.String imgName)

getImgFileName

public java.lang.String getImgFileName()

setThumbFileName

public void setThumbFileName(java.lang.String thumbFileName)

getThumbFileName

public java.lang.String getThumbFileName()

setOutDir

public void setOutDir(java.lang.String outDir)

getOutDir

public java.lang.String getOutDir()

setUri

public void setUri(java.net.URI uri)

getUri

public java.net.URI getUri()

setUriString

public void setUriString(java.lang.String uriString)

getUriString

public java.lang.String getUriString()

setRelativePath

public void setRelativePath(java.lang.String relativePath)

getRelativePath

public java.lang.String getRelativePath()

main

public static void main(java.lang.String[] args)