CPSC 329 Software Developemnt Fall 2008

Drawing UML Diagrams with VioletER

Introduction

Violet is a simple, free, and attractive editor for UML diagrams. (Many editors are lacking in one or more of these qualities!) You'll be using an extended version I call VioletER which also supports ER diagrams - that's not important for this class, but those of you also in databases will be seeing Violet again.


Running VioletER

Type

/classes/f08/cs329/violet/run-violeter &

into your shell. You should get a splash screen, followed shortly by either a rather Windows-like display allowing you to select a drawing type or a recent file, or the editor window itself.

If you get the Windows-like display, choose an existing file you want to open or select "Class Diagram" to create a new UML class diagram.


Using VioletER

There's not much to using VioletER:

  1. Click on the desired diagram tool (right side of the window).
  2. Click in the drawing area to place a thing or click-and-drag from one thing to another to place a connecting arrow or line.
  3. Right-click on the thing or line you've just placed to configure its options (including naming it, adding attributes or methods to a class, adding annotations to the line, etc).
  4. Save when you are done (and periodically along the way in case something crashes).
  5. Maybe print your diagram, too.

Using VioletER Outside the Lab

I've found Violet to be pretty much unusable when run over the network (i.e. displayed on a machine other than the one where it is running). If you want to use it on your own computer:

There may be occasional updates to VioletER. These updates shouldn't be important for this course, but an announcement will be posted if there's a new jar available.


Valid HTML 4.01!