Interface JGraphLayout

All Known Implementing Classes:
JGraphAbstractTreeLayout, JGraphAnnealingLayout, JGraphCompactTreeLayout, JGraphCompoundLayout, JGraphFastOrganicLayout, JGraphFRLayout, JGraphHierarchicalLayout, JGraphISOMLayout, JGraphMoenLayout, JGraphOrganicLayout, JGraphRadialTreeLayout, JGraphSelfOrganizingOrganicLayout, JGraphSimpleLayout, JGraphSpringLayout, JGraphTreeLayout, OrganizationalChart, SimpleGridLayout

public interface JGraphLayout
The class that defines a layout algorithm. This class enforces the following principles on the layouts:
  • Layouts operate on cells, not cell views
  • All access to "current" (ie. changed) attributes should go via the facade provided to the run method
  • All access to the graph model should go via the facade passed to the run method
  • The facade should decouple the layout from special jgraph features such as partial views, and collapsed/expanded (edge) groups
  • Custom layouts can define extended facades for common functionality
Long-running layouts should additionally implement the Stoppable interface.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An additional interface that should be implemented if a layout is expected to run longer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Global static product identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Takes the graph detail and configuration information within the facade and creates the resulting laid out graph within that facade for further use
  • Field Details

  • Method Details

    • run

      void run(JGraphFacade graph)
      Takes the graph detail and configuration information within the facade and creates the resulting laid out graph within that facade for further use
      Parameters:
      graph - The layout facade that the layout will use as input