1、is a diagramming application that can be used to make a large variety of diagrams.is easy to learn and flexible enough to allow power users to create highly customized diagrams. Below are two simple examples of diagrams that can quickly be created using1.2 Starting with Dia:Dia tabbed diagramming1.3
2、 Creating a Canvas:All diagrams are drawn in their owncanvas. When you first start Dia, a blank canvas is created automatically. At any time, you can create a new canvas by selectingFile-New Diagram. The canvas may be customized in various ways, such as changing the background color or grid lines. D
3、ia startup showing blank canvas above and Toolbox. Figure1.3.Dia Startup1.4 Making a Diagram1. A diagram is made up of objects. Objects are shapes or lines that can be different colors and sizes. Objects can be simple line drawings, text, or full-color pictures. Some objects allow text to be entered
4、 inside the shape.Using Dia to create a diagram is easy. The Toolbox contains a palette of predefined objects, including simple shapes, lines, and specialized objects. To add an object to the canvas, simply click on the desired objects icon on the Toolbox and then click on the desired point on the c
5、anvas. The object will appear on the canvas where you clicked.2.An object can be moved by clicking on the object and dragging the mouse. The object can be resized by clicking and dragging one of the objects green or red handles.Objects can be connected using lines. Just drag each end of a line to an
6、y connection point (small blue x) on an object. Once objects are connected, they can be moved and the line stretches to keep them connected. 3. In the Toolbox, you can double-click on any objects icon to view and edit the objects default properties. This allows you to customize various default prope
7、rties of each object. For objects that include text, you can customize the text alignment and font properties. For standard shapes, you can customize the transparency, the corner shape, and the aspect ratioDia includes a set of standard shape and line objects. Dia includes a large number of predefin
8、ed objects for various uses. These include flowcharts, UML diagrams, network diagrams, and many others.4, Many common tasks in Dia require selecting one or more objects. Dia includes a number of ways to select objects quickly.Dia can be customized in a number of ways. Layers create multiple-images s
9、o they are one image. By doing this, a user can edit one layer without worrying about affecting any of the other layers. Dia is designed to make adding new user-defined shapes very easy. 1.5. Saving and Printing Your Diagram Dia provides the normal save and print options, located on the File menu. S
10、electing theFile-Page Setupallows you to set the paper size, orientation, and print margins. This also allows you to choose whether to print the diagram to scale (entered in percent) or to fit the diagram to a specific size (in centimeters).Dia supports exporting to numerous formats for excellent we
11、b publishing. Some of them include: Computer Graphics Metafile (.cgm) Encapsulated Postscript (.eps) Portable Document Format (.pdf) Portable Network Graphics (.png) Scalable Vector Graphics (.svg)2. Object And Tool BoxFig:2.1 Dia toolboxWhenis executed, two windows open: the canvas, which contains
12、the diagram, and the Toolbox, which contains the object palettes and other controls. The Toolbox is divided into three regions. The top region contains 14 buttons. The first three are controls used to adjust the diagram. The next 11 are the icons for the built-in basic objects.The middle portion of
13、the Toolbox contains the selected Special Objects. This is used to select among the many built-in object sheets supplied with Dia, such as UML, Flowchart, Network, etc.The bottom portion of the Toolbox contains special controls that set default properties for objects placed on the canvas. These incl
14、ude foreground color, background color, and line width. There are also three controls that set the default properties for line objects. These are beginning arrow style, ending arrow style, and line style. Modify Control:2.2 Modify ControlThe Modify control is the default setting when using Dia. This
15、 control allows you to select one or more objects on the canvas. After an object is added to the diagram, the Modify control is automatically selected for you. This makes it easy to add an object and then continue working without having to reselect the Modify control.Text editing Control:2.3.Text ed
16、it ControlThe Textedit control is new with Dia from version 0.97 - it indicates being in text edit mode. Together with an appropriate object selection it is one way to start text modification.An object supporting in-canvas text editing can be in two different selection modes. The normal selection is
17、 the same for all objects, it allows to manipulate the objects position, grouping etc. Some object can enter a second selection mode, which allows to edit their text from the canvas.Scroll Control:2.4.Scroll ControlThe Scroll control is used to move around the diagram. When this control is active, t
18、he mouse pointer changes to a hand. When the Scroll control is active, you can scroll around the diagram by clicking anywhere on the canvas and dragging the mouse. The diagram scrolls within the canvas window. The Scroll control stays active until you press one of the other controls.Special Objects:
19、On the Toolbox, just below the basic object icons, is a drop-down listbox that allows you to select a sheet of special objects to be included in the diagram. As you can see from the screenshot above,provides a large number of special objects. To use a special object, first select the desired sheet u
20、sing this drop-down listbox. Then, just click on the desired object and click on the canvas to insert the object.Default Color, Line Width, and Line Style Below the special objects palette are controls for setting the default foreground and background color, line width, and line style. These control
21、s all set default properties for new objects being added to the canvas. They do not affect the properties of existing objects already on the palette. These settings stay in effect for all futuresessions, until they are changed.The two squares on the left allow you to set the default foreground and b
22、ackground colors for all new objects being added to the diagram. If you double-click on the upper square (i.e., the black one in the screenshot above), you can set the default foreground color for all new objects. Double-clicking on the lower square (white in the screenshot) allows you to select the
23、 default background color - Restore Default Colors Button - Reverse Colors Button - Default Line Width- Arrow and Link StyleAt the bottom of the Toolbox are three buttons. The left button allows you to select the default arrow shape for the beginning of a line. In the screenshot this is defaulting t
24、o no arrow. The right button allows you to select the default arrow shape for the end of a line. Since only lines have arrows, these buttons only affect line objects and have no effect on other shapes. The middle button allows you to select the default line style (solid, dashed, etc.).3.Working With
25、 Dia 3.1 Adding ObjectsAdding objects to thecanvas is done by clicking on the desired objects icon button in theToolboxand then clicking on the canvas at the desired insertion point. The selected object will be inserted at that point.3.2 Moving ObjectsWhen an object is inserted into the canvas, the
26、desired object will appear with small green boxes (known as handles) around the border.4.12.Object HandlesTo move an object, click anywhere inside the object (or somewhere on a line other than a handle) and drag the mouse to the desired location on the canvas. For line objects, you need to click on
27、the line.3.3Resizing ObjectsHandles are used to change the size of the object. To expand an object, just click a handle and drag it away from the center of the object. To shrink an object, drag a handle toward its center. The objects size will change as you drag the mouse. If an object has a fixed a
28、spect ratio, changing one dimension automatically changes the other. If an object has a free aspect ratio, you can change one dimension (e.g., height) without affecting the other (e.g., width). Some objects have a property setting that determines whether the aspect ratio is fixed or free.3.4Deleting
29、 ObjectsTo delete an object, click on the object to select it. The handles will display, which indicates that the object is selected. Then press the Delete key or selectEdit-Deletefrom the menu.3.5 Connecting Objects With LinesIn many diagrams, shapes are connected to each other using one of the bas
30、ic line objects. When a shape is not selected, a number of connection points are displayed on its borders as small figures. There is also a connection point in the middle of each shape. Lines also have connection points where other lines can connect.Lines have handles on each end that are used to connect them to other objects. These handles are green if the line is not connected and red if it is connected. Lines also have orang
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1