Type: Fast Track
Another call to be added the the GraphLayoutFactory would include "inverted", "horizontal spacing", and "layer spacing" (vertical). The default all remain the same.
public static <N, E> GraphLayout<N, E> createHierarchicalGraphLayout(GraphScene<N, E> graphScene, boolean animate, boolean inverted) {
return new HierarchicalLayout(graphScene, animate, inverted);
}
public static <N, E> GraphLayout<N, E> createHierarchicalGraphLayout(GraphScene<N, E> graphScene, boolean animate, boolean inverted,
int xOffset, int layerOffset) {
return new HierarchicalLayout(graphScene, animate, inverted, xOffset, layerOffset);
}
<change id="GraphLayoutFactory.createHierarchicalGraphLayout">
<api name="general"/>
<summary>GraphLayoutFactory.createHierarchicalGraphLayout added two additional
calls to allow configuration of inverted and layout spacing.
</summary>
<version major="2" minor="13"/>
<date day="24" month="6" year="2008"/>
<author login="krichard"/>
<compatibility addition="yes"/>
<description>
There are certain graphs which demand that the hierarchical layout
be inverted (target above source). One such graph would be a UML
class diagram. For this reason I propose adding a static call to
the GraphLayoutFactory to allow for an "inverted" flag to be provided.
The default behavior sets inverted to false.
Another call to be added the the GraphLayoutFactory would include
"inverted", "horizontal spacing", and "layer spacing" (vertical).
The default all remain the same.
</description>
<class package="org.netbeans.api.visual.graph.layout" name="GraphLayoutFactory" link="yes"/>
<issue number="138104"/>
</change>