Community
Participate
Working Groups
Currently, when laying out nodes under any settings, the TreeLayoutAlgorithm determines node size and layout based on a pre-determined fixed canvas size. It would be very helpful to have tree layout determine ideal size given ideal node size and separation and determine canvas size from that. Workaround: Override TreeLayout with: protected void preLayoutAlgorithm(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider, double x, double y, double width, double height) { int maxDepth = contentProvider.getMaxDepth(); int attributeCount = contentProvider.getAttributeCount(); super.preLayoutAlgorithm(entitiesToLayout, relationshipsToConsider, x, y, attributeCount * m, [maxDepth] * n); } But it is difficult to determine max Depth and results are inconsistent. Build ID: I20071213-1700 Zest: 1.0.0v20071218
I just wanted to see if there was any additional ideas about this. In particular, can you think of a good way to sort of fake it that wouldn't require essentially mimicking the layout algorithms themselves?
Re-assigning back to inbox, as Ian is no longer active committer.