Changeset 1043

Show
Ignore:
Timestamp:
10/24/06 00:44:52 (2 years ago)
Author:
arjanmol
Message:

Updated items.tex, mostly grammar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/branches/new-canvas/doc/items.tex

    r1042 r1043  
    9696\section{Introduction} 
    9797UML specification defines UML data model, which is used by Gaphor to store 
    98 information about modeled system. UML data model is visualized with 
    99 Diacanvas library used as canvas library. Notation 
    100 of UML diagram items is also specified by UML specification. 
    101  
    102 Diacanvas library supports basic drawing operations but there are many 
     98information about a modeled system. The UML data model is visualized by 
     99the Gaphas library, a general purpose diagram drawing library. Notation 
     100of UML diagram items is also specified by the UML specification. 
     101 
     102The Gaphas library supports basic drawing operations but there are many 
    103103entities and behaviors, which are common to many or all diagram items, i.e. 
    104 stereotypes, items' name, popup menu, positioning of associated items, etc. 
     104stereotypes, item name, popup menu, positioning of associated items, etc. 
    105105 
    106106We have to identify common elements and behaviors of UML diagram items 
     
    108108by Gaphor to provide modeling functionality. 
    109109 
     110Note that, the diagram item hierarchy does not have to follow the hierarchy 
     111defined in the UML model.  
     112 
    110113\section{Problem Description} 
    111114 
     
    118121 
    119122Because of differences between them, Basic diagram item class cannot be 
    120 directly associated with canvas line or canvas element. Connection between 
    121 diacanvas classes and items has to be established by different abstract 
     123directly associated with canvas lines or canvas elements. Connection between 
     124canvas classes and items has to be established by different abstract 
    122125classes. 
    123126 
    124127\subsection{Items and UML Model Classes} 
    125 Generaly there is one to one association between an item and UML class 
    126 but it is not always so simple.  
     128Generaly there is a one to one association between an item and an UML class, 
     129but it is not always that simple.  
    127130For example one diagram item can visualize more than one UML class 
    128131\begin{itemize} 
     
    132135 
    133136Also, there can be situation, when there is no UML class visualized, i.e. 
    134 in case of CommentLine. 
     137in case of a CommentLine. 
    135138 
    136139\subsection{Line Items} 
    137 Line has at least two handles. These handles are reffered as head (first 
    138 handle) and tail (second handle) of line. 
    139  
    140 When user puts an item on a diagram, then last handle can be moved to 
    141 desired point. The same applies to line items. User puts line on diagram, 
     140Lines have at least two handles. These handles are reffered to as head (first 
     141handle) and tail (last handle) of line. 
     142 
     143When a user puts an item on a diagram, then the last handle can be moved to 
     144a desired point. The same applies to line items. User puts a line on diagram, 
    142145head is set in mouse cursor point and tail is moved to desired point. 
    143146 
    144 Head and tail concepts are also used in diacanvas in case of canvas line
     147Head and tail concepts are also used in Gaphas in case of canvas lines
    145148Head of line item is at the same end as head of canvas line. The same 
    146149applies for tail. 
     
    150153Many of such parts can be shared by other items, for example 
    151154\begin{itemize} 
    152 \item UML named elements (see named items) have names, which should be 
     155\item UML named elements (see named items) have names, which 
    153156    can be displayed in different places, i.e. class --- top--center, 
    154157    use case --- middle--center 
     
    280283Align constants and classes are defined in \rmodule{gaphor::diagram::align} module. 
    281284 
    282 \subsection{Stereotype and Name Align
     285\subsection{Stereotype and Name Alignment
    283286 
    284287There are two important elements of items