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". * <p> * 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. * <p> * 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<Vector <UMLPage>> pages; /** True if page boundaries should be show (as 25% grey dashed lines). */ boolean showPageBoundaries; /** The name of this diagram. By default, this is the name of the file in * which the diagram is stored. The diagram editor allows the user to * change the name to something other than the file name. */ }