Getting Started Guide
Getting Started Guide
Chapter 7
Getting Started with
Draw
Vector Drawing in OpenOffice.org
Copyright
This document is Copyright © 2005–2008 by its contributors as listed
in the section titled Authors. You may distribute it and/or modify it
under the terms of either the GNU General Public License, version 3 or
later, or the Creative Commons Attribution License, version 3.0 or
later.
All trademarks within this guide belong to their legitimate owners.
Authors
Agnes Belzunce
Chris Bonde
Daniel Carrera
Regina Henschel
Michel Pinquier
Iain Roberts
Gary Schnabl
Alex Thurgood
Jim Taylor
Jean Hollis Weber
Linda Worthington
Feedback
Please direct any comments or suggestions about this document to:
authors@user-faq.openoffice.org
Rulers
You should see rulers (bars with
numbers) on the upper and left-hand
side of the workspace. These show
the size of a selected object on the
page (see the gray double lines,
highlighted in Figure 2). When no
object is selected, they show the
location of the mouse pointer, which
helps to accurately position drawing Figure 2: Rulers show the size
objects. You can also use the rulers to of the selected object
manage object handles and guide lines, making it easier to position
objects. The page margins in the drawing area are also represented on
the rulers. You can change the margins directly on the rulers by
dragging them with the mouse.
Toolbars
The various Draw toolbars can be displayed or hidden according to
your needs.
To display or hide the toolbars, click View > Toolbars. On the menu
that appears, choose which toolbars you want to display.
Standard toolbar
The Standard toolbar looks like this:
If the selected object is text, the toolbar changes to the one shown
below, which is similar to the Formatting toolbar in Writer.
Drawing toolbar
The Drawing toolbar is the most important toolbar in Draw. It contains
all the necessary functions for drawing various geometric and freehand
shapes and organizing them on the page.
Color Bar
To display the Color Bar, use View > Toolbars > Color Bar. The
toolbar then appears at the bottom of the workspace.
This toolbar lets you rapidly choose the color of the objects in your
drawing. The first box in the panel corresponds to transparency (no
color).
You can access several specialized color palettes in Draw, as well as
change individual colors to your own taste. This is done using the Area
dialog, reached by choosing Format > Area or the pouring can icon on
the Line and Filling toolbar.
On the Area dialog, choose the tab marked Colors.
The effect of the Ctrl key depends on the settings of the Snap to
Grid option on the View->Grid menu:
Note Snap to Grid on: Ctrl deactivates the snap option for this
activity.
Snap to Grid off: Ctrl activates the snap option for this activity.
The spacing (resolution) of the grid points can be adjusted under Tools
> Options > OpenOffice.org-Draw > Grid. See also Chapter 8 (Tips
and Tricks) in the Draw Guide.
Hold down the Alt key to extend the line symmetrically outward from
the start point (the line extends to each side of the start point equally).
This lets you draw straight lines by starting from the middle of the line.
The line just drawn has all the default attributes, such as color and line
type. To change the line attributes, click on the line to select it and
then use the tools in the Line and Filling toolbar; or for more control,
right-click on the line and choose Line to open the Line dialog.
Drawing an arrow
Arrows are drawn like lines. Draw classifies arrows as a subgroup of
lines: Lines with arrowheads. They are shown in the information field
on the status bar only as lines. Click on the Line Ends with Arrow
icon to draw an arrow.
Starting point
Starting point
If you first press and hold the Control key and then click on one
of the icons (Line, Rectangle, Ellipse, or Text), an object is
Note drawn automatically in the work area—the size, shape, and
color are all standard values. These attributes can be changed
later, if desired.
Drawing curves
The tools for drawing curves or polygons are on the toolbar that
appears when you click the Curve icon on the Drawing toolbar.
This toolbar contains eight tools (Figure 18).
Polygons
Draw the first line from the start point with the left mouse button
held down. As soon as you release the mouse button, a first corner
point is drawn, and you can move the mouse to see how the second
line will look. Every mouse click sets another corner point. A double-
click ends the drawing. A filled polygon automatically joins the last
point to the first point to close off the figure and fills it with the
current standard fill color. A polygon without filling will not be
closed at the end of the drawing.
Polygon 45°
Just as with ordinary polygons, these will be formed from lines but
with angles of 45 or 90 degrees between them.
Freeform Line
With this tool you can draw just like with a pencil. Press and hold
the left mouse button and move the mouse. It is not necessary to end
the drawing with a double-click. Just release the mouse button and
the drawing is completed. If you have selected Freeform Line, Filled,
the end point is joined automatically to the start point and the object
is filled with the appropriate color.
Writing text
Use the Text tool to write text and select the font, color, size, and
other attributes. Click on an empty space in the workspace to write the
text at that spot or drag an area to write inside the dragged frame.
Press Enter to drop to the next line.
When you have finished typing text, click outside the text frame.
Double-click on the text at any time to edit it.
Symbol shapes
The Symbol Shapes icon brings you to an
array of tools for drawing the various symbol
shapes.
Block arrows
The Block Arrows icon opens the Block Arrows
toolbar.
Flowcharts
The tools for drawing flowcharts are accessed by
clicking on the Flowcharts icon .
The creation of flowcharts, organization charts, and
similar planning tools are described in Chapter 9
(Organization Charts, Flow Diagrams, and More) in
the Draw Guide.
Callouts
Use the Callouts icon to open the Callouts
toolbar.
You can add text to all these shapes. See Chapter 2 (Drawing Basic
Shapes) and Chapter 10 (Advanced Draw Techniques) in the Draw
Guide for details.
Selection modes
There are three selection modes: moving and changing size, rotating,
and editing points.
The default mode for selecting objects depends on whether the Points
button on the Drawing toolbar is active (appears lit) or not inactive
(appears dark or dimmed) .
In standard mode (when you begin a new drawing),
the Points button is not active, and the default mode
is for selections to be moved or changed in size; these
selections are indicated by small green squares.
Selection modes 23
Changing the selection mode
To go from one mode to another, you can do one of the following:
• Toggle the Points button on the Drawing toolbar to switch from
the simple selection mode to the Points mode . You can also use
the keyboard shortcut F8 (Points).
• Choose the Effects drop-down button from the Drawing toolbar
to activate the Rotation mode for a selected object.
• If you often work in Rotation mode, you can choose the Rotation
Mode after Clicking Object button from the Options bar, you
can cycle through normal and rotation modes just by clicking on
the object. This can be more convenient than clicking the object,
then clicking the Rotate button from the Drawing Toolbar.
Selecting objects
Direct selection
To select an object, the easiest way is to click directly on it. For objects
that are not filled, click directly on the object's outline to select it.
Selection by framing
You can select several objects by using the mouse to
drag a large rectangle around the objects, as shown.
For this to work, the Select icon on the Drawing
toolbar must be active. Only objects that lie entirely
within the rectangle are selected.
Arranging objects
In a complex drawing, you may have objects stacked up, one on top of
the other, with the result that a particular object is hidden by one or
more other objects above it. You can rearrange the stacking order of
objects (move an object to the front or to the back of the stack) by
selecting the object, clicking Modify > Arrange and selecting the
appropriate Bring Forward or Send Backward option, or by right-
clicking the object and selecting Arrange from the context menu, then
selecting from the list of Bring Forward or Send Backward options.
On the Drawing toolbar, the Arrange tear-off menu on the button
contains the above options. A keyboard shortcut is Shift+Ctrl++ to
bring an object to the top, and Shift+Ctrl+− to send an object to the
bottom.
Draw also provides tools for aligning multiple objects; details are given
in the Draw Guide.
Selecting objects 25
Moving and dynamically adjusting an
object’s size
There are several ways of moving or changing the size of an object.
The method described here will be called dynamic in the sense that it
is carried out using the mouse.
When you dynamically change an object, remember to check the
central area of the status bar at the bottom of your screen. This area
shows detailed information about the ongoing manipulation. For
example, during resizing, you will see the following information
displayed. This information changes when the mouse is moved.
Object position Object dimensions Current proportional page size
The results differ depending on which handle you use. If you choose a
corner handle, you will resize the object along two axes at the same
time. If you use a side handle, the objects will only be resized along
one axis.
If you press the Shift key at the same time as you carry out the
resizing operation, the size change will be carried out
Note symmetrically with respect to the two axes; this enables you to
keep the aspect (height/length) ratio of the object.
Rotation
Rotating an object lets you move the object around an axis. To do this
dynamically, use the red handles, as you do when changing the size of
the object.
To rotate an object (or a group of objects), drag the red corner handle
points of the selection with the mouse. The mouse cursor takes the
shape of an arc of a circle with an arrow at each end. A dotted outline
of the object being rotated appears and the current angle of rotation is
dynamically shown in the status bar.
Rotations are made about an axis which is displayed as a small symbol.
You can move the axis of rotation with the mouse, as shown in
Figure 22.
If you hold down the Shift key during the rotation, the operation will be
carried out in increments of 15°.
Editing objects
To change an object’s attributes (such as color, border width, among
others) you can use the Line and Filling toolbar or the context menu.
If the Line and Filling toolbar (Figure 23) is not visible, you can display
it using View > Toolbars > Line and Filling. From here you can edit
the most common object attributes. You can also open the Line dialog
by clicking on the Line icon and the Area dialog by clicking on the
Area icon to see more options.
You can change some properties from the Line and Filling toolbar. To
see more options, select the object and click on the Line icon or
right-click on the object and choose Line from the context menu. This
opens the Line dialog.
Editing objects 29
Figure 25: The vertical lines have different
levels of transparency (0%, 25%, and 50%).
Drawing arrows
Arrowheads (and other line endings, usually referred to
collectively as arrows) are a line property. Select a line and
click on the Arrow Style icon. This opens the
Arrowheads menu.
Several types of arrowheads are available. Each end of the
line can have a different arrowhead (or no arrowhead).
Arrowheads are only applicable to lines. They have no
effect on an object’s border.
Adding a shadow
In Draw, shadows are considered an area
property. Click on the Shadow icon on the Line
and Filling toolbar.
You can customize the position, distance, color,
and transparency of shadows.
Adding transparency
You can make objects partly or fully transparent, or even with a
varying degree of transparency (as a gradient).
Using styles
Suppose that you want to apply the same area fill, line thickness, and
border to a set of objects. This repetitive process can be greatly
simplified by the use of styles. Styles allow you to define a formatting
template (a style) and then to apply that style to multiple objects. For
more about styles, see Chapter 3 (Using Styles and Templates) for
more information.
Special effects
With Draw, you can apply many special effects to objects and groups of
objects. This section describes a few of these effects. Others include
distorting, shadows, and transparency. See the Draw Guide for
examples of the many effects available.
Flip an object
Select an object and click on the Flip icon . You will
see a dashed line through the middle of the object.
Special effects 31
This dashed line is the axis of symmetry. The object
will be reflected about this line. Move one or both
ends of the line with your mouse to set the axis.
Then, grab any one of the eight green handles and
move it across to the other side of the dashed line.
The new position of the figure is shown dashed until
the mouse is released.
If you hold down the Shift key while moving the line, the line will
Note rotate in 45-degree increments.
Mirror copies
Officially, this useful command does not (yet) exist in Draw. It can,
however, be easily emulated.
Move the axis of symmetry to the desired location of the mirror axis.
Copy the object to the clipboard. Flip the object, then click on an
empty area of the Draw screen in order to deselect the object. Paste
from the clipboard to put a copy of the object in its original location
and now you have a mirror copy.
Distorting an image
There are three tools on the Effects menu that let you drag the
corners and edges of an object to distort the image.
The Distort tool distorts an object in perspective, the Set to Circle
(slant) and Set in Circle (perspective) tools both create a pseudo
three-dimensional effect. See Chapter 4 of the Draw Guide for details.
Dynamic gradients
You can control transparency gradients in the same manner as color
gradients. Both types of gradient can be used together. With a
Duplication
Duplication makes copies of an object while applying a set of changes
(such as color or rotation) to the duplicates. The result of a duplication
is a new group.
To start duplication, click on an object or group and choose Edit >
Duplicate. The dialog shown in Figure 26 appears.
The options chosen in Figure 26 applied to a blue rectangle produce
the following result.
Special effects 33
Cross-fading
Cross-fading transforms a shape from one form to another, with
OpenOffice.org handling all of the intermediate transitions. The result
is a new group of objects including the two end points and the
intermediate steps.
To carry out a cross-fade, select both objects (hold the Shift key while
selecting each object in turn) and then choose Edit > Cross-fading
The following dialog appears.
Combining objects
In contrast to grouping functions, combinations create a new object;
subsequent “un-combining” in the same manner as ungrouping is not
possible. Select a collection of objects, then right-click and choose
Combine from the pop-up menu.
After you have selected more than one object, the Merge, Subtract,
and Intersect functions can be reached in the Modify > Shapes menu
or though the group’s right-click menu under the heading Shapes.
Editing pictures
Draw contains a number of functions for editing raster graphics
(bitmaps)—for example, photos, scanned pictures, and so on—including
import and and export as well as conversion from one format to
another. Draw can read in all the usual range of graphic file formats.
However, it does not have the same capabilities as the specialized
raster graphics programs like Adobe Photoshop or The Gimp.
See Chapter 6 (Editing Pictures) in the Draw Guide for details.