Copyright (C) 1994, Digital Equipment Corp. <* PRAGMA LL *>
AlbumVBT manages a photo album of snapshots of VBTs. The
snapshots are taken by Image.FromVBT.
INTERFACEThe callAlbumVBT ; IMPORT Axis, VBT; TYPE T <: TPublic; TPrivate <: VBT.Split; TPublic = TPrivate OBJECT METHODS <* LL <= VBT.mu *> init (layoutAxis : Axis.T; size : CARDINAL; width, height: REAL := 30.0): T; <* LL = VBT.mu *> add (w: VBT.T); clear (); END;
v.init(layoutAxis, size, width, height) initializes
v to be an AlbumVBT.T. An AlbumVBT.T is a VBT.Split
that manages the layout of a series of images produced by
taking snapshots of VBTs using Image.FromVBT. The images in v
are all shaped v.width by v.height millimeters and laid
out in a grid.
If v.layoutAxis is horizontal, then there are v.size
images laid out horizontally in each row, with rows laid out
top to bottom. If v.layoutAxis is vertical, then there are
v.size images per column and the columns are laid out left
to right.
The method call
v.add(w)
adds a new snapshot to the album. It occupies the next slot
either vertically or horizontally (depending on
v.layoutAxis).
The method call
v.clear()
removes all snapshots from the album.
END AlbumVBT.