Point class

 

Point overview

 

class Point;

 

Graphical Point in a diagram.  A Point is defined through its x and y coordinates.

 

Figure 5. Detailed class diagram of Point

 

See also:   Diagram, ViewElement.

 

 

Point properties

The Point class has the following attributes:

·         x: Value of the x coordinate of the point.

·         y: Value of the y coordinate of the point.

 

 

Point coordinate system

 

Figure 6. Coordinate system in a Diagram

 

Objecteering uses a classic system of coordinates: the origin is in the top left corner of the diagram, and the coordinate unit is the pixel.

 

Boxes can overlap other boxes and links (for example, packages which overlap classes and packages, composed states, etc).  In this case, the origin of an overlapped element is the top left corner of the embedding box.

 

 

Point constructor

ViewLink:addPoint (in integer x, in integer y);

Adds an intermediary point to a link.  We then have a "broken" link.

 

The points are generally implicitly created by ViewElements.  They may be added explicitly on links.