Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ThumbnailViewer Class Reference

A viewer that displays thumbnails (small versions of larger images). More...

Inheritance diagram for ThumbnailViewer::

CanvasViewer CanvasInspectionUser CanvasEditUser List of all members.

Public Methods

 ThumbnailViewer ()
 Constructor. More...

 ThumbnailViewer (int width, int height, boolean fixedSize)
 Constructor. More...

int addObject (CanvasObject obj)
 Overrides CanvasViewer interface. More...

void setDoZoomOnAdd (boolean doZoom)
 if (doZoom) the thumbnail will adjust its zoom factor to make the object's visualization match the sizes of the viewer, otherwise the thumbnail will assume the sizes of the object are already adjusted to match the size of the viewer (so it does nothing) This will only affect future calls to addObject! More...


Detailed Description

A viewer that displays thumbnails (small versions of larger images).

Will only display objects derived from CanvasImage (?).


Constructor & Destructor Documentation

ThumbnailViewer::ThumbnailViewer   [inline]
 

Constructor.

ThumbnailViewer::ThumbnailViewer int    width,
int    height,
boolean    fixedSize
[inline]
 

Constructor.


Member Function Documentation

int ThumbnailViewer::addObject CanvasObject    obj [inline]
 

Overrides CanvasViewer interface.

Add a CanvasImage (?) to the viewer. Works correct only in case all images on the canvas have the same size (since it adjusts the zoom factor of the canvas).

Reimplemented from CanvasViewer.

void ThumbnailViewer::setDoZoomOnAdd boolean    doZoom [inline]
 

if (doZoom) the thumbnail will adjust its zoom factor to make the object's visualization match the sizes of the viewer, otherwise the thumbnail will assume the sizes of the object are already adjusted to match the size of the viewer (so it does nothing) This will only affect future calls to addObject!


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:28 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001