Components are objects that are placed on the canvas and manipulated by the user. A component can be a simple shape (for example, a drawing primitive) or a complex collection of shapes or images. Objective Views provides the user interface functionality needed to draw shapes and add them as components onto a canvas. To start drawing a component, the user selects the toolbar button or menu command that corresponds to a particular shape. This puts the Objective Views application into a mode that enables it to accept further input to draw the component. The left mouse button is used to draw the shape, while the right mouse button cancels the draw command. The following table describes how to draw each type of shape or primitive component and perform other drawing related tasks.
To | Do this |
Draw a component of equal proportions or at 90 degree angles | Hold the SHIFT key while drawing a component. For example, if the user selected a rectangle tool button and then clicked in the client area while holding the SHIFT key, the application would draw a square. |
Draw a component that is centered on the point at which the drawing started. | Hold the CTRL key while drawing a component. |
Draw a line![]() |
Click the Line button ![]() |
Draw a polyline![]() |
Click the Polyline button ![]() |
Draw a rectangle![]() |
Click the Rectangle button ![]() |
Draw a polygon![]() |
Click the Polygon button ![]() |
Draw a polycurve![]() |
Click the Polycurve button ![]() |
Draw a closed curve![]() |
Click the Closed Curve button ![]() |
Draw an ellipse![]() |
Click the Ellipse button![]() |
Add text | Click the Text button ![]() |
Add an image | Click the Image button ![]() |
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.