Class FragmentTower

java.lang.Object
de.saar.chorus.domgraph.layout.domgraphlayout.FragmentTower

public class FragmentTower extends Object
A special part for the layout of a dominance graph. TODO Insert a tower definition here.
Author:
Alexander Koller, Michaela Regneri
  • Method Details

    • translate

      public void translate(int xoff, int yoff, Map<String,Integer> xMap, Map<String,Integer> yMap)
      TODO comment me!
      Parameters:
      xoff -
      yoff -
      xMap -
      yMap -
    • getBox

      public Rectangle getBox()
      Compute the bounding box of the tower. If the tower hasn't been placed at a specific screen position yet, the box will start at (0,0).
      Returns:
      the bounding box
    • getDominanceParents

      public Set<String> getDominanceParents()
      Returns:
      all dominance parents of the tower
    • addDominanceParent

      public void addDominanceParent(String parent)
      Add a dominance father to the tower
      Parameters:
      parent - the parent to add
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if there are no fragments in the tower