uic.widgets.filechooser
Class FilePreviewImage

java.lang.Object
  extended by uic.widgets.filechooser.FilePreviewImage
All Implemented Interfaces:
FilePreviewInterface

public class FilePreviewImage
extends Object
implements FilePreviewInterface


Constructor Summary
FilePreviewImage()
           
 
Method Summary
static double getScale(int imageWidth, int imageHeight, int destWidth, int destHeight)
           
 void preview(File file, Graphics g, Component component, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePreviewImage

public FilePreviewImage()
Method Detail

preview

public void preview(File file,
                    Graphics g,
                    Component component,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
preview in interface FilePreviewInterface

getScale

public static double getScale(int imageWidth,
                              int imageHeight,
                              int destWidth,
                              int destHeight)


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence