![]() ![]() ![]() |
Agilian facilitates excellent interoperability by allowing exchange of UML diagrams and models via XMI. Apart from this, you also can import models created previously from IBM Rational Rose.
This chapter guides you through the process of importing and exporting a VP project, an XML file or an XMI file. You can also learn how to export a VP project as an image and how to import a IBM Rational Rose Project.
In this chapter:
The images exported can be inserted to external documents for easier distribution. Here are the types of image Agilian support exporting:
![]() |
Figure 7.1 - Enable Import and Export toolbar |
![]() |
Figure 7.2 - Diagram exporter |
Field | Description |
---|---|
Output destination | The Output destination is the directory where all the exported images are saved to. You can enter the path in the text field directly, or you can click on the ... button to browse for the directory. |
Export type | To select the image format of the exported image click on the pull-down box beside the Export type field and select the format you want to use. |
Diagrams | The Diagrams pane shows the diagrams in the current project. Check the checkbox beside the diagram you want to export. The number of selected diagrams is displayed at the bottom of the Diagram pane. The Preview pane also allows you to preview the exported image of the selected diagram. |
Preview | The Preview pane shows the preview of the exported image of the selected diagram in the Diagrams pane. You can check/uncheck the Show preview checkbox to enable/disable the preview. You can select the size of the preview image by selecting from the pull-down box beside the Preview mode field. Selecting Stretch will show the image in scaled size that fits to the preview area, while selecting Real size will show the image in its actual size. |
Anti-aliasing | Anti-aliasing is a method which handles the staircase pixels of slanted lines and curves to make them look smoother. You can apply anti-aliasing to the exported images. To apply anti-aliasing to graphics, check the Graphics Anti-aliasing checkbox in the Anti-aliasing pane. Likewise, you can check the Text checkbox in the Anti-aliasing pane to apply anti-aliasing to text. |
Auto overwrite existing files | You can check the 'Auto overwrite existing files' checkbox to allow overwriting of files in the export process. |
Max. Size | Maximum size of exported images. If the diagram size is larger than the max. size, it will be resized. |
![]() |
Figure 7.3 - Slice diagrams |
Slicing strategies | Description |
---|---|
Fixed Slice |
Fixed Slice is a simple strategy which slices exported diagram into pieces of the same size. The user specifies the number of columns and rows to slice and then the exported diagram will be sliced into specific pieces. |
Free Slicing |
Users can customize how to slice the exported diagram by specifying the position of vertical slices and horizontal slices. It is particularly useful to prevent a shape from being sliced into pieces. |
Fixed Ratio |
Fixed Ratio gains the benefits of Fixed Slice and Free Slicing. The width and height of pieces are the same but for the last row and column. Users can also customize the width and height of sliced pieces. Like Free Slicing, Fixed Ratio is size oriented. User modifies the size of pieces and Diagram Slicer calculates the number of row and column to slice. |
![]() |
Figure 7.4 - Select Diagrams as Image... |
![]() |
Figure 7.5 - Select PDF format |
![]() |
Figure 7.6 - Type in Output destination |
![]() |
Figure 7.7 - Select diagrams to export |
![]() |
Figure 7.8 - Export finished |
![]() |
Figure 7.9 - Exported file |
![]() |
Figure 7.10 - Type in a directory
|
![]() |
Figure 7.11 - Select Open Folder
|
![]() |
Figure 7.12 - Exported files in the designated directory
|
![]() |
Figure 7.13 - Exported file |
![]() |
Figure 7.14 - Export Agilian project
|
![]() |
Figure 7.15 - Export Project dialog box |
![]() |
Figure 7.16 - Select diagram to export
|
![]() |
Figure 7.17 - Diagram Navigator of exported project
|
![]() |
Figure 7.18 - Import Agilian Project
|
![]() |
Figure 7.19 - Select a project to import |
![]() |
Figure 7.20 - Diagram before import |
![]() |
Figure 7.21 - Diagram after import |
![]() |
Figure 7.22 - Export XML
|
![]() |
Figure 7.23 - XML dialog box displayed |
![]() |
Figure 7.24 - Text box for Output destination |
![]() |
Figure 7.25 - Select Export
|
![]() |
Figure 7.26 - XML file is generated |
![]() |
Figure 7.27 - XML schema
|
![]() |
Figure 7.28 - Open XML file
|
![]() |
Figure 7.29 - Edit the file |
![]() |
Figure 7.30 - Import XML file |
![]() |
Figure 7.31 - Specify the file path |
![]() |
Figure 7.32 - Import completed
|
![]() |
Figure 7.33 - Export XMI |
![]() |
Figure 7.34 - Export XMI dialog box
|
![]() |
Figure 7.35 - Specify the export file path
|
![]() |
Figure 7.36 - XMI file created |
![]() |
Figure 7.37 - Import XMI
|
![]() |
Figure 7.38 - Specify import file's path
|
![]() |
Figure 7.39 - Export EMF-based UML2 |
![]() |
Figure 7.40 - Check Export for UML2 and specify file path
|
![]() |
Figure 7.41 - Get the XMI file in project's directory in Eclipse
|
![]() |
Figure 7.42 - Refresh eclipse
|
![]() |
Figure 7.43 - XMI file imported
|
![]() |
Figure 7.44 - Select the class to modify
|
![]() |
Figure 7.45 - Select Show Properties View
|
![]() |
Figure 7.46 - Select the property to edit
|
![]() |
Figure 7.47 - Change the property
|
![]() |
Figure 7.48 - Import XMI
|
![]() |
Figure 7.49 - Specify import file's path
|
![]() |
Figure 7.50 - The diagram before importing |
![]() |
Figure 7.51 - The diagram after importing
|
![]() |
Figure 7.52 - Import from Rational Rose® |
![]() |
Figure 7.53 - Import a Rose Project |
![]() |
Figure 7.54 - Specify the file path |
![]() |
Figure 7.55 - Select the import mode |
![]() |
Figure 7.56 - Progress dialog box |
![]() |
Figure 7.57 - Message pane opened |
![]() |
Figure 7.58 - Diagrams imported |
![]() |
Figure 7.59 - Models Imported
|
|
|