Class 2 |
Intermediate Java 30-IT-397 |
|
Using Poseidon to Generate a Class
Diagram
-
Again, it is fairly easy. As a matter of fact, the first diagram
Poseidon gives you is an empty class diagram when you open it.
-
This time, let's say we're staring a new one with Forte'/NetBeans.
From the menu bar, choose Diagrams-Class Diagram.
-
You'll find all of the necessary symbols on the button bar at the top of
the Poseidon screen.
-
First, add a class box. In the properties window, you can change
the name of the class.
-
Then, you can right click on the box to add attributes (instance fields)
and operations (methods).
-
Keep doing that until you are satisfied. Then, you can click on the
"Java Source" tab of the properties window to see the source that was generated!
-
You can add classes, associations, and more. You can make labels
for roles and associations.
-
All in all, a powerful tool.
-
Example
Package Diagram, Object Diagram

Created by: Brandan Jones
December 17, 2001