Many of the primitive components in Objective Views are based on geometrical shapes that depend on a set of vertices. CODPointComponent contains all the logic for maintaining the points of components such as lines, polygons and curves.
If you needed to create a new component, such as a triangle, you would use CODPointComponent as your base. If you wanted to create a component that doesn't use vertices, you would use CODComponent as a base. Note that the CODSymbolComponent class is derived directly from CODComponent.
The curve component defines a series of control points for a bezier curve. Like a line, a curve can be assigned a color and style.
The closed curve component is derived from the curve component. Like a curve component, it defines a series of control points to form a bezier curve. Since the curve is always closed, it can be assigned a fill color and style as well as a line color and style.
The ellipse component defines a series of control points that form a bezier curve in the shape of an ellipse. The ellipse component remains an ellipse even when the user moves its points. Like a closed curve, the ellipse can be assigned a line color and style as well as a fill color and style.
This class provides an alternative to the CODEllipseComponent. It uses the Windows GDI Ellipse() function to draw the ellipse instead of approximating the ellipse using bezier curves. The Windows Ellipse() function does not support rotation, so it is not possible to rotate CODEllipseComponent2 objects. The advantage to using this class is that in certain situations it will scale more accurately than CODEllipseComponent, because the CODEllipseComponent approximates the ellipse using bezier curves.
The line component defines a series of line segments. A line can have a color and style.
The rectangle component defines a series of line segments that form a rectangle. A rectangle remains a rectangle even when you manipulate its vertices. Like a polygon, a rectangle can be assigned a line color and style or a fill color and style.
The polygon component defines a series of line segments to form a polygon. You can assign a polygon line color and style, and fill color and style.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.