fi.hut.tml.xsmiles.mlfc.smil.basic
Interface LayoutCalc

All Known Implementing Classes:
SMILLayoutElementImpl, SMILRegionElementImpl, SMILTopLayoutElementImpl

public interface LayoutCalc

Interface for all elements with top, bottom, left and right. These methods will calculate the percentage and absolute values correctly.


Method Summary
 void addRegion(SMILRegionElementImpl region)
          Add region to this region.
 int calcBottom()
           
 int calcLeft()
           
 int calcRight()
           
 int calcTop()
           
 DrawingArea getDrawingArea()
          Get the drawing area for this region.
 void removeRegion(SMILRegionElementImpl region)
          Remove region from this region.
 

Method Detail

calcTop

public int calcTop()

calcBottom

public int calcBottom()

calcRight

public int calcRight()

calcLeft

public int calcLeft()

addRegion

public void addRegion(SMILRegionElementImpl region)
Add region to this region. This will cause the drawingarea to become visible.


removeRegion

public void removeRegion(SMILRegionElementImpl region)
Remove region from this region. This may cause the drawingarea to become invisible, if this was the last region, and no medias either in the region.


getDrawingArea

public DrawingArea getDrawingArea()
Get the drawing area for this region.



X-Smiles 1.2