The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Collapsing and expanding simple trees in OmniGraffle (http://forums.omnigroup.com/showthread.php?t=21326)

RobTrew 2011-06-07 01:23 AM

Collapsing and expanding simple trees in OmniGraffle
 
[IMG]http://farm4.static.flickr.com/3240/5807872610_76c2842721_o.png[/IMG][IMG]http://farm3.static.flickr.com/2419/5807305897_e0761ee992_o.png[/IMG]

Is there a better way to show simple trees at varying levels of collapse and expansion ?

Subgraphs seem unsuitable - turning a sub-tree into a subgraph changes its position in the sibling sequence used by automatic layout. Also subgraph labels seem to remain visible regardless of collapse state.

Placing successive generations/levels of the tree on different layers (and toggling the visibility of these layers) seems better but a little complex ...

[links between shapes are hidden intelligently, and auto-layout adapts quite gracefully, but time (or Applescript automation) seems to be required to set up all the layers.]

Is there something simpler that I am missing ?

[COLOR="White"]--[/COLOR]

RobTrew 2011-06-07 03:09 AM

OK, at the scripting level, simply moving particular levels, sets of levels, or sub-trees in and out of a single special 'hidden' layer, and then re-triggering automatic layout, seems to work OK.

But it would be good to have something built into the GUI, to prevent me from reaching for my old copy of [URL="http://www.inspiration.com/"]Inspiration[/URL], which is still quicker than OG for typing an outline swiftly, switching back and forth between an outline view and a graphic view, and hoisting or collapsing particular subtrees, or collapsing to particular levels.

All of which is where I happen to spend quite a lot of the day :-)

PaulHughes 2011-06-10 09:43 AM

Hello! I just downloaded omnigraffle, and I'm curious how you achieved the retrigger of auto-layout in your script, as what you describe is exactly what I want. If you could share your script with me I would be very grateful. THanks so much!

RobTrew 2011-06-11 08:37 PM

The OG applescript library contains a [I]layout[/I] command, and shapes have a [I]layer[/I] property.

(I don't have a general body of code that I can share for this, unfortunately).


All times are GMT -8. The time now is 11:31 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.