That's where UMLet comes into my sight, and that is exactly what it does the best.
- UMLet has a very simple user interface.
The picture speaks for itself.You can see from the picture that there is a menu bar, 2 drop-down lists on the top, three panels on the right and on the left is the big drawing board where you can put your creative work in.
The menu bar has 3 menus, namely File, Edit, Help. Each of them contains the usual menu items. E.g. you can find Open, Close etc. in the File menu. Copy, Cut etc. in the Edit menu and Help is quite self-explanatory :-)
There are also 2 drop-down lists at the top:
The "insert custom elements" lists contains all custom elements created by you (we will talk about how to do this in a moment)
The "Palettes" list contains different groups of UML elements you can use to create your design. Those elements are grouped by the type of UML diagrams they will be used in. E.g. there are Class palettes, and Activity Diagram palettes. And of course, these are customizable .
The majority of the screen is occupied by the paint area where you create your diagrams. You add elements to your diagram by double click on the elements in the palettes panel. (drag'n drop will just move the element around in the palette panel).
On the right side of the paint area, you have 3 panels. The top panel is the "palettes" panel, where UML elements reside (mind you, it can contain anything that you have created not just these UML elements). Below this panel, there is a text panel, where you edit your UML element by editing some plaint text pseudo code (this is the best part of UMLet, I will talk about it in the next paragraph), let's call it the "editing panel". Below the text panel, there is another text panel, where you can use to implement your own UMLet elements (custom elements). - UMLet let you create your diagrams in a very simple way.
And this has to be the thing I love the most about it. With any other UML case tools that I have come across, if you want to add attributes or operations to Class, you need at least a few mouse clicks plus entering text in a lot of pop-up dialog boxes. Not with UMLet. With UMLet, you add your class on your canvas and edit your class by editing some plaint text pseudo code in the "editing panel".
For example, you need to create Class A with attributes XXX, YYY and operations getZZZ. all you have to do in UMLet is add a simple class in your canvas (by double clicking on the "simple class" element on the palette panel. and then write the following text in the "editing panel"
ClassA
--
XXX: String
YYY: Long
--
getZZZ(id: Long): void
and that's it. You will get a class looks like this on the canvas.To make this an abstract class, you do
/ClassA/
--
XXX: String
YYY: Long
--
getZZZ(id: Long): String
/+getABC(): Long/
To define a lationship like thisYou type:
lt=-
m1=0..1
m2=0..n
relationship
Of course, there are many other things you can define in UMLet without dialog boxes popping up all the time, actually, there is no dialog box in UMLet at all. - UMLet lets your define your own UML elements ... in JAVA
You can define your own custom UML elements or any other elements you care by adding a custom elements from the "insert custom elements" drop-down list. UMLet will prompt you to enter an Element name, and when you click on your element on the canvas, you can see the Java code for that element showing in the text panel below the "element definition" panel. Basically, your custom elements need to extend the com.umlet.element.base.Entity, there is a compile button, you can use to compile and add your custom element into your collection.
Powered by ScribeFire.
No comments:
Post a Comment