import java.util.*; /**** * * A UMLDiagram is a two-dimensional Vector of UMLPages. Each page is a * collection diagram elements consisting of packages, classes, and operations. * UML diagrams with only these three types of elements are considerably * simpler than full UML diagrams. Hence the name of this tool -- "Simple * UML". *
* Strictly speaking, an operation is not part of a standard UML diagram. In * the UML-like diagrams defined here, an operation can appear as an oval, as a * sibling diagram element of UML classes. *
* When rendered on a display, the pages are presented in row-major order. If
* the lengths of row vectors are unequal, the width of the display is the
* number of pages in the maximum length row vector. Missing pages in shorter
* row vectors are rendered as blank pages. There is a display option that
* specifies whether a diagram is shown with or without visible page
* boundaries. There is also an option that specifies the page size.
*
*/
public class UMLDiagram {
/** The 2D collection of pages */
protected Vector