Module imp2d

Class HierarchyLayout

All Implemented Interfaces:
Manageable, Shareable

public abstract class HierarchyLayout extends Layout
A HierarchyLayout computes a graph layout based on a hierarchy model. The concrete hierarchy model has to be implemented in subclasses (e. g. TreeLayout, SugiyamaLayout)
Author:
Birka Fonkeng
  • Constructor Details

    • HierarchyLayout

      public HierarchyLayout()
  • Method Details

    • setAllNodesEdgesAccessed

      public void setAllNodesEdgesAccessed(Node nodeList, boolean value)
    • setAllEdgesAccessed

      public void setAllEdgesAccessed(Node nodeList, boolean value)
    • getNodeCount

      public int getNodeCount()
      Returns the number of nodes of the graph
      Returns:
      nodeCount number of nodes
    • setNodeAccessed

      public void setNodeAccessed(Node nodeTemp, boolean value)
      Setting a concrete Node marked or unmarked
      Parameters:
      node - Node that has to be marked
      value - true if unmarked, false if marked
    • setEdgeAccessed

      public void setEdgeAccessed(Edge edgeTemp, boolean value)
      Setting a concrete edge marked or unmarked
      Parameters:
      edge - Edge that has to be marked
      value - true if unmarked, false if marked
    • isNodeAccessed

      public boolean isNodeAccessed(Node nodeTemp)
      checks if a node is marked or unmarked
      Parameters:
      node - Node that will be checked
      Returns:
      true if unmarked, false if marked
    • isEdgeAccessed

      public boolean isEdgeAccessed(Edge edgeTemp)
      checks if a edge is marked or unmarked
      Parameters:
      edge - Edge that will be checked
      Returns:
      true if unmarked, false if marked
    • createAlgorithm

      protected Layout.Algorithm createAlgorithm()
      Description copied from class: Layout
      Creates an algorithm for this layout.
      Specified by:
      createAlgorithm in class Layout
      Returns:
      a new Algorithm instance