Interface GraphArrangement

All Known Implementing Classes:
ForceArrangement, LayeredArrangement, RadialArrangement, TreeArrangement

public interface GraphArrangement

Places the nodes of a graph. An arrangement computes positions without touching the model; ArrangementResult.apply moves the nodes, and a com.codename1.ui.graph.NodeGraph animates them there instead.

Pinned nodes keep their place in every arrangement that can honour it.

  • Method Summary

    Modifier and Type
    Method
    Description
    Computes a position for every node, and a route for edges the arrangement bends.
  • Method Details

    • arrange

      ArrangementResult arrange(GraphModel model)
      Computes a position for every node, and a route for edges the arrangement bends.