This class models a ball that has a specified ball color, text color, size, value, and state. These parameters can be changed. The state of the ball is drawn or not drawn. If drawn, the ball is shown with its value and color. If not drawn, the ball is shown without its value and in the background color. The Ball object can be used as a metaphor for an element in a population, in a variety of simulations that involve sampling. In particular this object is useful for simulations that involve drawing balls from an urn, such as the basic urn experiment
The text area below gives the code for this object, so that you can browse the constructors, methods, and properties of the object. Of course, this source file is part of devices.zip, which contains all source and resource files for the objects in the devices package.