Package acm.util

This package includes several classes that are common to the ACM package suite.

See:
          Description

Class Summary
Animator This class extends Thread to provide several features that make it easier to build animations.
FileChooserFilter This class extends javax.swing.filechooser.FileFilter and exists primarily to avoid the ambiguity that arises because there is also a FileFilter class in java.io.
JTFTools This class provides a collection of static utility methods that are used elsewhere in the ACM packages.
MediaTools This class implements a standard mechanism for loading images, sounds, and data files from the resources associated with a jar file.
MovieClip This class represents a video clip, which can be read from a QuickTime movie file or web-based resource.
OptionTable This class implements a simple tool for parsing key/value pairs from a string.
Platform This class contains methods to support platform-specific code.
RandomGenerator This class implements a simple random number generator that allows clients to generate pseudorandom integers, doubles, booleans, and colors.
SoundClip This class represents a sound, which can be created from a URL, sound file, resource stream, or digital samples.
SwingTimer This class is equivalent to javax.swing.Timer and exists only to avoid the ambiguity that arises because there is also a Timer class in java.util.
 

Exception Summary
CancelledException This class allows a dialog to signal clients that it has been cancelled.
ErrorException This class allows errors to be reported in a consistent way.
 

Package acm.util Description

This package includes several classes that are common to the ACM package suite. Novice users of the package will, in general, not need to use most of these classes. The following list provides a brief description of each of the acm.util classes, starting with the classes that are most likely to be of use:

RandomGenerator
This class extends the Random class from java.util and offers a few useful simplifications for working with pseudorandom values.

MediaTools
This class includes several static methods that support the use of images and sounds.

SoundClip
This class represents a sound that can be played through the computer.

MovieClip
This class represents a QuickTime movie that can be played on the screen.

ErrorException
This class is used to signal errors anywhere in the ACM Java Library collection. The primary advantage of ErrorException is that it is defined as a RuntimeException subclass and therefore does not need to be caught or declared in a throws clause.

CancelledException
This class allows a dialog to signal clients that it has been cancelled.

FileChooserFilter
This class allows a dialog to signal clients that it has been cancelled.

Platform
This class contains several methods that support platform-specific code.

SwingTimer
This class is equivalent to javax.swing.Timer and exists only to avoid the ambiguity that arises because there is also a Timer class in java.util.

FileChooserFilter
This class provides a simple implementation of the abstract FileFilter class in javax.swing.filechooser.

OptionTable
This class implements a simple tool for parsing key/value pairs from a string. Its primary use is for parsing the options used in the TableLayout class in the acm.gui package.

JTFTools
This class provides a collection of static utility methods that are used elsewhere in the ACM packages.