public static CanonicMultiStageLayouter createOrthoLayouter(
      final OrthogonalStyle style, final long gridSize, final boolean isVerticalOrientation) {
    Preconditions.checkArgument(gridSize > 0, "Internal Error: Grid size can not be 0 or lower.");
    Preconditions.checkNotNull(style, "Internal Error: Layout style can't be null");

    final OrthogonalLayouter layouter = new OrthogonalLayouter();
    if (OrthogonalStyle.TREE.equals(style)) {
      layouter.setTreeStyle(OrthogonalLayouter.TREE_STYLE_ASPECT_RATIO_TREE);
    }
    if (!isVerticalOrientation) {
      // OrientationLayouter.TOP_TO_BOTTOM is the default
      ((OrientationLayouter) layouter.getOrientationLayouter())
          .setOrientation(OrientationLayouter.LEFT_TO_RIGHT);
    }
    layouter.setGrid((int) gridSize);

    return layouter;
  }
Creates graph layouter objects that are used to layout ZyGraphs.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/layouters/ZyGraphLayouter.java