edu.jhu.tmaj.client.image
Class ThumbnailsMenuHelper

java.lang.Object
  extended by edu.jhu.tmaj.client.image.ThumbnailsMenuHelper
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public final class ThumbnailsMenuHelper
extends java.lang.Object
implements java.awt.event.ActionListener

A class that controls how thumbnails are displayed on the ArraySlideFrame, as well as allowing the user to download thumbs to their local disk. The user must first download thumbs to the local disk in order to view them. Although it is possible to give a URL for the thumbnails, this results in poor performance, since the JTable repaints itself often. The frame offers several preset sizes to view the thumbnails. If a preset size is used, the user thumbnails will each be so large that the user can not view the entire ArraySlide at once. However, if the "Fit to Window" option is selected, the thumbnails will be small enough that the entire ArraySlide will fit into the size of the window.


Constructor Summary
ThumbnailsMenuHelper(ResizableTableComponentListener componentAdapter, ArrayImageRenderer arrayImageRenderer, javax.swing.JTable table, ArrayImageCollectionBean bean, HeaderTableScrollPane t)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void addRadioButtonsToMenu(javax.swing.JMenu menu)
           
static void setCellSize(HeaderTableScrollPane headerTableScrollPane, javax.swing.JTable table, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailsMenuHelper

public ThumbnailsMenuHelper(ResizableTableComponentListener componentAdapter,
                            ArrayImageRenderer arrayImageRenderer,
                            javax.swing.JTable table,
                            ArrayImageCollectionBean bean,
                            HeaderTableScrollPane t)
Method Detail

addRadioButtonsToMenu

void addRadioButtonsToMenu(javax.swing.JMenu menu)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setCellSize

public static void setCellSize(HeaderTableScrollPane headerTableScrollPane,
                               javax.swing.JTable table,
                               int width,
                               int height)