Development of a Dynamic Visualization Using Java2d
Total Page:16
File Type:pdf, Size:1020Kb
System Development Project Development of a Dynamic Visualization using Java2D Anton Kostov Aufgabensteller: Univ.-Prof. Dr. Dr. h.c. Manfred Broy Betreuer: Dipl.-Inf. (Univ.) Sebastian Winter Abgabedatum: 22. November 2005 Page 1 Abstract: The project goal was to develop a dynamical visualization of the great amount of information that a todays auto produces. The format and the presentation of this information are very important and one of the most used tools that help the driver is the Comboview which is usually placed in front of him and displays speed, rpm, oil consumption etc. To improve the interaction between the driver and the car such a tool was developed and integrated into the car-simulator developed from the Department for Ergonomics's (DfE) at the TUM. Different Comboview templates can be created easily using some graphical editor that have support for the SVG format like Illustrator and thus allowing us to build quickly different user interfaces and explore which is better suited. The project goals were to create such templates, build a viewer that can load them and dynamically update the displayed information and also to deploy it as a service into the car-simulator. The viewer can be used either standalone or as a part of the DWARF system and is based on Batik SVG project. Page 2 Table of Contents System Development Project..................................................................................................................... 1 1 Introduction............................................................................................................................................. 5 1.1 Motivation....................................................................................................................................... 5 1.2 Goals of this work........................................................................................................................... 5 1.3 Dwarf Overview.............................................................................................................................. 6 1.4 SVG Overview................................................................................................................................ 6 1.5 Batik Overview................................................................................................................................7 1.6 Structure of the document............................................................................................................... 9 2 Requirements for the dynamic visualization.........................................................................................10 2.1 Usage Scenarios.............................................................................................................................10 2.2 Functional Requirements...............................................................................................................11 2.3 Non Functional Requirements.......................................................................................................11 2.4 Pseudo Requirements.................................................................................................................... 11 3 Design and Implementation ................................................................................................................. 13 3.1 Design Goals................................................................................................................................. 13 3.1 Class Design.................................................................................................................................. 13 3.2 Use Cases...................................................................................................................................... 19 4 Comboview Demo................................................................................................................................ 21 4.1 The demo setup............................................................................................................................. 21 4.2 The Standalone Application.......................................................................................................... 21 4.2.1 Windows................................................................................................................................21 4.2.2 Linux......................................................................................................................................23 4.3 The Comboview Service............................................................................................................... 25 5 How-to...................................................................................................................................................27 5.1 Create & Deploy Dwarf Extensions.............................................................................................. 27 5.2 Create SVG Templates with Adobe Illustrator..............................................................................27 5.2.1 How-to create templates........................................................................................................ 27 5.2.2 Tools For Viewing SVG .......................................................................................................32 5.2.3 Tools For Creating SVG .......................................................................................................33 5.2.4 Exporting to SVG.................................................................................................................. 33 6 Future Work.......................................................................................................................................... 35 7 Conclusion............................................................................................................................................ 36 8 Appendix...............................................................................................................................................37 A : Javadoc.......................................................................................................................................... 37 A..................................................................................................................................................... 37 B......................................................................................................................................................37 C......................................................................................................................................................37 D..................................................................................................................................................... 38 E......................................................................................................................................................39 F...................................................................................................................................................... 39 G..................................................................................................................................................... 39 H..................................................................................................................................................... 40 I....................................................................................................................................................... 40 L......................................................................................................................................................40 M.....................................................................................................................................................41 Page 3 N..................................................................................................................................................... 41 O..................................................................................................................................................... 41 P...................................................................................................................................................... 41 R......................................................................................................................................................42 S...................................................................................................................................................... 42 T......................................................................................................................................................43 U..................................................................................................................................................... 43 V..................................................................................................................................................... 44 B: Glossary.......................................................................................................................................... 44 9 Bibliography..........................................................................................................................................46 Page 4 1 Introduction 1.1 Motivation Modern automobiles contain a wide variety