Introduction to the Container

The LEADTOOLS Container Class Library provides a means of automating drawing, as well as automating the collection and transformation of coordinates of objects within the container. Including the container in an application that requires drawing and coordinate transformation capabilities can decrease development time. The LEADTOOLS Container currently supports the following objects:

image\sqrblit.gif Point Object.

image\sqrblit.gif Line Object.

image\sqrblit.gif Square Object.

image\sqrblit.gif Rectangle Object.

image\sqrblit.gif Circle Object.

image\sqrblit.gif Ellipse Object.

image\sqrblit.gif Polyline Object.

image\sqrblit.gif Bezier Object.

image\sqrblit.gif Arc Object.

image\sqrblit.gif Text Object.

 

A container can be attached to a window. The window to which a container is attached is said to "own" that container. After attaching the container to a window, the container becomes responsible for collecting and transforming the coordinates of any selected objects in the container. This coordinate information is sent to a user-defined callback for further processing. The container also has the ability to associate object types with user-defined mouse cursors. For example, when a rectangle is being drawn in the container, one cursor is displayed. When a circle is being drawn in the container, a different cursor may be displayed. In addition, the container also has the ability to edit objects using coordinates and handles.