System and methods for providing 1D and 2D connectors in a connected
diagram. Routing and layout of connectors is accomplished through a
pre-defined set of behaviors and properties on a connector that enable an
aesthetic layout. Routing behaviors and visual look of the connectors
within a diagram may be included in an XML definition file or controlled
by a user. The user may switch between 1D and 2D connectors regardless of
a shape of the connector. Padding and offset features are assigned to
connectors for aesthetically pleasing presentation of object relations.
Text box shapes and placements on or near connectors are aligned with
connector type, size, and placement. Images and non-predefined shapes may
be used as connectors with behaviors assigned similar to predefined
shapes.