elementpackage is responsible for insulating students from the difficulites of using the AWT (Abstract Windowing Toolkit) from day one. Still, the design of the package is such that students who learn Java by using the package will not be left high-and-dry once they must turn to direct use of the AWT.
element package provides several items:
The latter feature is supported with a small set of graphics primitives, including Point, Line, Circle, Rect, and others. Each implements an interface, Drawable, which may be implemented by the programmer to extend the features and capabilities of the element package itself. For example, the text spends some time discussing the implementation of a class to draw Triangles and Squares.