de.saar.chorus.ubench
Class FragmentTower

Object
  extended by 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 Summary
 void addDominanceParent(Fragment parent)
          Add a dominance father to the tower
 Rectangle getBox()
          Compute the bounding box of the tower.
 Set<Fragment> getDominanceParents()
           
 boolean isEmpty()
           
 void translate(int xoff, int yoff, Map<Fragment,Integer> xMap, Map<Fragment,Integer> yMap)
          TODO comment me!
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

translate

public void translate(int xoff,
                      int yoff,
                      Map<Fragment,Integer> xMap,
                      Map<Fragment,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<Fragment> getDominanceParents()
Returns:
all dominance parents of the tower

addDominanceParent

public void addDominanceParent(Fragment 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