|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home ChartPack RChart Class TSmithChart Methods Rectangle|
|See also: TransparentItems, Ellipse, RectangleRelPix|
The method Rectangle displays a rectangle. The lower left corner and the upper right corner are specified by the positions (x1,y1) and (x2,y2), respectively (the x-values represent the real component of the complex reflection coefficient, the y-values represent the imaginary component).
The rectangle can be drawn in different coordinate system modes: version  uses the world coordinates (these are the coordinates shown at the axes of the chart), version  uses the screen coordinates (pixels), and versions  and  mix them. Using screen coordinates (which are declared as integer) has the effect that the rectangle remains at a fixed position even if the chart is panned or zoomed. Using mixed mode coordinates ( and ) allows to implement a "stretching" effect, with one corner of the rectangle staying in place and the other moving with the world coordinate system.
The color of the boundary is determined by the property DataColor; the color of the inner area is specified by the property FillColor. The fill area of the rectangle may be either opaque or transparent, depending on the property TransparentItems. The line width may be adjusted by the property LineWidth.