skip to main content
Maps > Developing with design tools > Using the Dashboard Editor > Programming the Dashboard Editor > Retrieving the link layout of a dashboard
 
Retrieving the link layout of a dashboard
The following code shows how to return the link layout of a dashboard:
 
 /**
   * Returns the link layout of a dashboard if it is installed.
   * @param dashboard The dashboard diagram.
   * @return The link layout, or null if it is not enabled.
   */
  public static IlvGraphLayout getLinkLayout(IlvDashboardDiagram dashboard) {
    IlvGraphLayoutRenderer renderer =
        dashboard.getEngine().getLinkLayoutRenderer();
    if (renderer != null) {
      return renderer.getGraphLayout();
    }
    return null;
  }
For this code to work correctly, link layout must be enabled. For information on how to do this, see Enabling link layout.
For more information on how to work with link layout using Java™ code, see Link Layout (LL) in the Using Graph Layout Algorithms user’s documentation.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.