Happy !

StephaneDucasse / Connectors

Project infos

License MIT
Tags
Creation date 2013-12-24
Website

Monticello registration

About Connectors

To archive the old connectorMorph package. Here is the old wiki page

Connectors is a package by Ned Konz that turns Morphic into a drawing environment for making connected drawings.

A Connector (NCConnectorMorph) is a Morph that looks like a line and has a constraint on either end that keeps the ends attached to some other Morph (usually). Connectors work with any Morph.

The package also comes with several goodies that improve the drawing environment, including: Smart labels that position themselves to stay out of the way of whatever they're attached to Maker Buttons that save prototypes of Morphs and generate copies of them when pressed A button bar that holds Maker Buttons A tool to adjust the attachment points on a Morph Several other shapes that share a common yellow-button context menu

You can query the connections of a Connector or a Morph, and can generate connections programmatically.

Some interactive documentation can be found in this project (a few years old) ConnectorsMS-nk.pr (http://wiki.squeak.org/squeak/uploads/1773/ConnectorsMS-nk.pr) and works for example in a squeak3.6 image.

Here is a great tutorial: http://squeak.pbwiki.com/Connector%20Tutorial

This project has been ported to Squeak 4.x by Chris Muller, and the updated code is available at SqueakSource (http://www.squeaksource.com/Connectors/)

Older versions are available at SqueakMap!

Connectors 2 has added:

-Antialiased drawing -Borders -Bitmap and gradient fills -Bezier curves replace the cubic splines -Vertex management (drag an end and the other vertices get moved appropriately) -Auto-straightening on disconnection (optional) -EToy scripting support -Arrows can be arbitrary TrueType glyphs -Better integration with Genie -More configurable for your own applications