lhmc.gui.thumbnailsbrowser
Class ThumbnailFacade

java.lang.Object
  extended by lhmc.gui.thumbnailsbrowser.ThumbnailFacade

public class ThumbnailFacade
extends java.lang.Object

ThumbnailFacade provides a simplified interface to the external classes: ThumbanailsManager, ThumbnailsPanel. Manages the files from a directory and its thumbnails.

Version:
0.01 Jun 2007
Author:
Cristina Roura Claver

Constructor Summary
ThumbnailFacade(java.net.URL[] files)
          Constructs the thumbnail facade.
 
Method Summary
 void changeDirectory(java.net.URL[] files)
          Changes the current directory, changin the tree node
 javax.swing.JPanel createThumbnail(int index)
          Creates a thumbnail panel for one file at certain position in the tree.
 java.net.URL getFileAt(int index)
          Gets the file at the certain position.
 java.lang.String getFileNameAt(int index)
          Gets the file name at the certain position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailFacade

public ThumbnailFacade(java.net.URL[] files)
Constructs the thumbnail facade.

Parameters:
files - an array of files in a directory.
Method Detail

changeDirectory

public void changeDirectory(java.net.URL[] files)
Changes the current directory, changin the tree node

Parameters:
files - The new directory files.

getFileNameAt

public java.lang.String getFileNameAt(int index)
Gets the file name at the certain position.

Parameters:
index - The position of the thumbnail.
Returns:
The file name.

getFileAt

public java.net.URL getFileAt(int index)
Gets the file at the certain position.

Parameters:
index - The position of the thumbnail file.
Returns:
The url file.

createThumbnail

public javax.swing.JPanel createThumbnail(int index)
Creates a thumbnail panel for one file at certain position in the tree.

Parameters:
index - The position of the file.
Returns:
The thumbnail panel.