基本图形
出自OOo 中文指南手册翻译
目录 |
Draw提供了大量的形状,可以通过位于绘图工具栏的图标来启用。本章只讨论了几个基本形状;可用形状的详尽描述,参看Draw指南。这些形状包括矩形和正方形、圆、椭圆和弧线、三维对象、曲线、线条和箭头、文字、以及连接器。 Draw provides a wide range of shapes, located in palettes accessed from the Drawing Toolbar. This chapter describes only a few of the basic shapes; see the Draw Guide for a complete description of the shapes available. These shapes include rectangles and squares; circles, ellipses, and arcs; 3D objects; curves; lines and arrows; text; and connectors. (1)
当你画一个基本形状或选择一个进行编辑的时候,状态栏的信息字段变化以反映所进行的操作:创建的线条,选中了文本框xxyy,等等。 When you draw a basic shape or select one for editing, the Info field in the status bar changes to reflect the action taken: Line created, Text frame xxyy selected, and so on. (2)
下图显示了绘图工具栏的一部分,包括以下部分所需要的图标。 文字图标也包括在内。 The figure below shows part of the Drawing toolbar with the icons needed in the following sections. The Text icon is also included. (3)
[编辑] 绘制直线 Drawing a straight line (5)
让我们先绘制最简单的形状:一条直线。点击绘图工具栏上的线条图标
,将鼠标指针置于期望的线条的起点。划线时保持按钮按下,同时拖动鼠标。释放鼠标按钮,结束线条。 Let’s start by drawing the simplest of shapes: a straight line. Click on the Line icon
on the Drawing Toolbar and place the mouse pointer where you want to start the line. Drag the mouse while keeping the button pressed. Release the mouse button when you want to end the line. (6)
线条的两端各有一个蓝色或绿色选择控点,显示这是当前选定的对象。颜色取决于选择模式(绿色用于简单的选择,蓝色是点编辑模式)。如果选项工具栏上的简单控点和大控点开启的话,这种效果是显而易见的。 A blue or green selection handle appears at each end of the line, showing that this is the currently selected object. The colors depend on the selection mode (green for simple selection and blue when in point edit mode). This effect is easily apparent if on the Options toolbar both Simple Handles and Large Handles are switched on. (7)
画线时按住Shift键,控制线的角度为45度的倍数(0、45、90、135等等)。 Hold down the Shift key while drawing the line to restrict the angle of the line to a multiple of 45 degrees (0, 45, 90, 135, and so on. (9)
按Control键(PC上按Ctrl)将线条的终点与最近的网格点对齐。 Hold down the Control key (Ctrl in PCs) to snap the end of the line to the nearest grid point. (10)
网格点间距(分辨率)可以根据需要调整,工具 > 选项 > OpenOffice.org - Draw > 网格。另见Draw指南第8章(提示和技巧)。 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. (12)
按住ALT键从起点对称延长线条(线条从起点向每一个方等量延伸)。这允许您从线条的中点开始绘制直线。 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. (13)
刚划的线条具有所有的默认属性,如颜色和线型。要改变线条的属性,点击它以选中它,然后使用线条和填充工具栏上的工具,或右击该线条并选择线条打开线条对话框线,以进行更多的控制。 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. (14)
[编辑] 绘制一个箭头 Drawing an arrow (15)
绘制箭头与线条类似。Draw将箭头归类为线条的一个子集:带箭头的线条。在状态栏的信息字段上它们仅显示为线条。要画一个箭头,点击带箭头的线条图标
。 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. (16)
[编辑] 绘制线条和箭头 Drawing lines and arrows (17)
点击线条和箭头图标
上的小黑三角,打开包含10个绘制线条和箭头的工具的浮动工具栏。或者,您可以直接点击相应的符号,重复该工具栏上次选择使用的命令。在这两种情况下,最后使用的命令都将被储存在工具栏上,以便能够更较快地再次调用它。 Click on the small black triangle on the Lines and Arrows
icon to open a floating toolbar with ten tools for drawing lines and arrows. Alternatively, you can click directly on the symbol to repeat the last-used command chosen from this toolbar. In both cases, the last-used command will be stored on the toolbar to make it quicker to call it up again. (18)
[编辑] 绘制一个矩形或正方形 Drawing a rectangle or square (20)
绘制矩形类似于绘制直线,只是从绘图工具栏使用矩形图标
。用鼠标绘制的(虚)线对应于矩形的对角线。此外,要绘制的矩形的轮廓随鼠标的拖动而改变形状。该轮廓以虚线显示,直到您松开鼠标按钮,矩形的绘制完成。 Drawing rectangles is similar to drawing straight lines, except that you use the Rectangle icon
from the Drawing Toolbar. The (imaginary) line drawn with the mouse corresponds to the diagonal of the rectangle. In addition, the outline of the future rectangle changes shape as you drag the mouse around. The outline is shown as a dashed line until you release the mouse button, when the rectangle is drawn. (21)
要绘制一个正方形,按住Shift键。按住ALT,从其中心开始绘制一个矩形。要组合这两个效果,同时按住ALT和SHIFT键。 Hold down the Shift key to draw a square. Hold down the Alt key to draw a rectangle starting from its center. To combine the effects, hold down both the Shift and Alt keys simultaneously. (23)
[编辑] 绘制一个圆或椭圆 Drawing a circle or ellipse (24)
要绘制一个椭圆(也称为椭圆形)或圆,使用绘图工具栏上的椭圆形图标
。 (圆也是一个椭圆,只是它的两轴有相同的长度而已。)绘制的椭圆是用鼠标绘制的矩形(虚拟)的最大的内接椭圆。 To draw an ellipse (also called an oval) or a circle, use the Ellipse icon
from the Drawing Toolbar. (A circle is simply an ellipse where the two axes are the same length.) The ellipse drawn is the largest ellipse that would fit inside the (imaginary) rectangle drawn with the mouse. (25)
有三种其他方式绘制椭圆或圆形: There are three other ways to draw an ellipse or circle: (27)
- 绘制时同时按住Shift键,使所绘制的椭圆成为一个圆。 Hold down the Shift key while drawing to force the ellipse to be a circle. (28)
- 按住ALT键,从中心开始对称绘制椭圆形或圆形,而不是从一个角拖到其对顶角。 Hold down the Alt key to draw a symmetrical ellipse or circle from the center instead of dragging corner to corner. (29)
- 绘制的同时按住Ctrl键,使椭圆形或圆形与网格线对齐。 Hold down the Ctrl key while drawing to snap the ellipse or circle to grid lines. (30)
[编辑] 绘制曲线 Drawing curves (32)
在绘图工具栏点击曲线图标
,绘制曲线或多边形的工具,出现在工具栏上。此工具栏包含八个工具。 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. (33)
| 鼠标悬停在这个图标上,显示出工具提示曲线。然而,当您将此图标转换为浮动工具栏时,显示的标题是线条。 | |
| Hovering the mouse over this icon gives a tooltip of Curve. If you convert the icon to a floating toolbar, however, the title is Lines. |
如果您将鼠标光标移动到其中的一个图标上,弹出一个关于其功能说明的工具提示。如需处理贝塞尔曲线(曲线和填充曲线)的更详细的介绍,见Draw指南第10章(高级绘图技术)。 If you move the mouse cursor over one of the icons, a tooltip pops up with a description of the function. For a more detailed description of the handling of Bézier curves (curves and filled curves), see Chapter 10 (Advanced Draw Techniques) in the Draw Guide. (36)
多边形 Polygons (37) 按住鼠标左键,从起点绘制第一条边。当您松开鼠标按钮时,绘制第一个顶点,你可以移动鼠标,查看第二条线的样子。每点击鼠标一次产生一个顶点。双击结束绘制。一个填充的多边形自动最后一点和第一点接起来,形成闭合的图形,以目前的标准填充颜色填充它。一个没有填充的多边形在绘制结束时不会自动闭合。 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. (38)
45 0多边形 Polygon 450 (39)
正如普通多边形,它们由线条构成,但线之间的角度为45或90度。 Just as with ordinary polygons, these will be formed from lines but with angles of 45 or 90 degrees between them. (40)
自由型线条 Freeform Line (41)
有了这个工具,您可以像用铅笔画图一样。按住鼠标左键并移动鼠标。它不需要双击结束绘图。只要释放鼠标按钮,绘图就结束。如果你选择了自由形线条,填色,终点自动与起点连接,对象用适当的颜色填充。 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. (42)
[编辑] 输入文字 Writing text (43)
使用文字工具
写入文字,并选择字体、颜色、大小和其他属性。在工作区空白处点击在该处写入文本或拖动鼠标画出一个区域并在其框架内写入文本。按Enter开始新的一行。 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. (44)
当你完成了文本输入后,在文本框外点击。任何时候双击文本进入编辑。 When you have finished typing text, click outside the text frame. Double-click on the text at any time to edit it. (45)
当您键入文本时,上面的工具栏包括段落的常规属性:缩进、第一行、制表位。 When you type text, the upper toolbar includes the usual paragraph attributes: indents, first line, and tab stops. (46)
你可以改变全部或部分文字的样式。样式和格式窗口在这里也适用(选择格式 > 样式和格式或按F11键打开它),所以你可以创建能够重复用于其他文本框架的图形样式。绘图样式影响一个文本框中的的所有文本。要对部分文本应用样式,使用工具栏直接格式化。 You can change the style of all or part of the text. The Styles and Formatting window also works here (select Format > Styles and Formatting or press F11 to launch), so you can create Graphics styles that you can reuse for other text frames. Graphics styles affect all of the text within a text frame. To style parts of the text, use direct formating with the toolbar. (47)
文本框也可以填充颜色、阴影和其他属性,像任何其他Draw对象一样。您可以旋转框架和写入任何角度的文字。这些选项可以通过右键点击对象得到。 Text frames can also have fill colors, shadows, and other attributes, just like any other Draw object. You can rotate the frame and write the text at any angle. These options are available by right-clicking on the object. (48)
使用在绘图工具栏上的图例工具,创建图例(也称为说明或图形标签)。 Use the Callout tool, located on the Drawing toolbar, to create callouts (also known as captions or figure labels). (49)
在选中一个对象时,如果双击对象或按F2(或点击绘图工具栏上的文本图标),文本写入在对象的中心并保留在对象中。几乎任何类型的对象都包含这样一个额外的文本元素。就文本的位置和断字而言,这些文本与文本框文本有细微的差别。 If you double-click on an object or press F2 (or the Text icon in the Drawing toolbar) when an object is selected, text is written in the center of the object and remains within the object. Nearly any kind of object contains such an additional text element. These texts have slight differences to those in text frames concerning position and hyphenation. (50)
有关文字的更多信息,请参阅Draw指南第2章(绘图基本形状)和第10章(高级绘图技术)。 For more about text, see Chapter 2 (Drawing Basic Shapes) and Chapter 10 (Advanced Draw Techniques) in the Draw Guide. (51)
[编辑] 连接点和连接器 Gluepoints and connectors (52)
所有Draw对象都有关联的隐形连接点。大多数对象有四个连接点。 All Draw objects have associated invisible gluepoints. Most objects have four gluepoints. (53)
连接点不同于控点(对象周围蓝色或绿色的小方块)。使用这些控点移动或调整对象的大小;使用连接点将连接器与对象接起来。 Gluepoints are different from handles (the small blue or green squares around an object). Use the handles to move or resize an object; use the gluepoints to attach connectors to an object. (55)
使用相同名称的工具栏,您可以添加更多连接点和定制连接点。当您点击绘图工具栏上的连接点图标
时,连接点可见,接着将一个连接器的端点移到对象上面。 You can add more gluepoints, and customize gluepoints, using the toolbar of the same name. Gluepoints become visible when you click the Gluepoints icon
on the Drawing toolbar and then move the end of a connector over the object. (56)
连接器是一种连接线或箭头,其两端点停靠于其他对象的连接点上。当您移动其他对象时,连接器与之一起移动。制作组织结构图时,连接器特别有用。你可以重新组织你的图表的板块,所有连接的对象保持连接着。 Connectors are a type of line or arrow whose ends dock to glue points on other objects. When you move the other object, the connector moves with it. Connectors are particularly useful for making organizational charts. You can reorganize the blocks of your chart and all the connected objects stay connected. (57)
下图显示了两个Draw对象和一个连接器。 The figure below shows two Draw objects and a connector. (58)
Draw有各种先进的连接器功能。你可以使用上下文菜单改变连接器的类型,或打开连接器的浮动工具栏(点击连接器图标
)。如需更多有关连接器和连接点的信息,见Draw指南第9章(组织结构图、流程图、及其他)。 Draw has a range of advanced connector functions. You can change connector types using the context menu or by opening the floating Connectors toolbar (click on the Connectors icon
). For more about connectors and gluepoints, see Chapter 9 (Organization Charts, Flow Diagrams, and More) in the Draw Guide. (60)








