[GOODIE] AdjacencyLayout-ajh (was: Finding open space?)

David Faught dave_faught at yahoo.com
Tue Nov 26 18:46:18 UTC 2002


This looks interesting, but I don't know how to deal
with the encoded attachment from the list server.  Is
there somewhere that I can download the changeset?


>Date: Mon, 25 Nov 2002 13:22:44 -0500 
>Subject: [GOODIE] AdjacencyLayout-ajh (was: Finding
>open space?)
>To: squeak-dev at lists.squeakfoundation.org
>From: Anthony Hannan <ajh18 at cornell.edu>
>Reply-To: squeak-dev at lists.squeakfoundation.org
>
>
>--==CelesteAttachment94746==
>
>from preamble:
>
>"Change Set:		AdjacencyLayout-ajh
>Date:			25 November 2002
>Author:			Anthony Hannan
>
>Send 'layoutPolicy: AdjacencyLayout new' to any
>Morph to make its
>submorphs never overlap.  Have a submorph return
>false to the
>'beAdjacent' message if it should ignore this no
>overlap rule.
>
>Try the example below, and drag/resize/add morphs to
>see what happens. 
>Morphs in front take precedence.  Dragging a morph
>by its move handle
>automatically puts it in front.  Morphs try to stay
>as close to their
>orginal position as possible.  Their original
>position is reset when
>moved or its owner is moved.
>
>	PasteUpMorph new
>		extent: 200 at 200;
>		layoutPolicy: AdjacencyLayout new;
>		addMorph: (Morph new color: Color >red; position:
80 at 80);
>		addMorph: (Morph new color: Color >gray; position:
80 at 80);
>		addMorph: (Morph new color: Color >blue; position:
80 at 80);
>		openInHand
>"!
>--==CelesteAttachment94746==
>Content-type: application/octet-stream
>Content-transfer-encoding: base64
>Content-disposition:
>attachment;filename="AdjacencyLayout-ajh.cs.gz"


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Squeak-dev mailing list