org.omegahat.Graphics.Layouts
Class LayoutCalculator

java.lang.Object
  |
  +--org.omegahat.Graphics.Layouts.LayoutCalculator

public class LayoutCalculator
extends java.lang.Object


Field Summary
protected  double[] allocatedHeights
           
protected  double[] allocatedWidths
           
protected  LayoutDescription d
           
protected  int fontSize
           
protected  double heightCM
           
protected  double widthCM
           
 
Constructor Summary
LayoutCalculator()
           
 
Method Summary
 Region createRegion(double x, double y, double width, double height)
           
 double[] getAllocatedHeights()
           
 double[] getAllocatedWidths()
           
 Region[] getRegions(LayoutDescription desc, ScaleInt sx, ScaleInt sy, int parentOrigin, double widthCM, double heightCM, int fontSize, GraphicalContainerInt parent)
           
 void initCalculator(LayoutDescription desc, ScaleInt sx, ScaleInt sy, int parentOrigin, double widthCM, double heightCM, int fontSize)
           
 void LayoutCalculator()
           
 double sumRegions(double[] regions, int from, int to)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d

protected LayoutDescription d

widthCM

protected double widthCM

heightCM

protected double heightCM

fontSize

protected int fontSize

allocatedWidths

protected double[] allocatedWidths

allocatedHeights

protected double[] allocatedHeights
Constructor Detail

LayoutCalculator

public LayoutCalculator()
Method Detail

getAllocatedWidths

public double[] getAllocatedWidths()

getAllocatedHeights

public double[] getAllocatedHeights()

LayoutCalculator

public void LayoutCalculator()

getRegions

public Region[] getRegions(LayoutDescription desc,
                           ScaleInt sx,
                           ScaleInt sy,
                           int parentOrigin,
                           double widthCM,
                           double heightCM,
                           int fontSize,
                           GraphicalContainerInt parent)

initCalculator

public void initCalculator(LayoutDescription desc,
                           ScaleInt sx,
                           ScaleInt sy,
                           int parentOrigin,
                           double widthCM,
                           double heightCM,
                           int fontSize)

sumRegions

public double sumRegions(double[] regions,
                         int from,
                         int to)

createRegion

public Region createRegion(double x,
                           double y,
                           double width,
                           double height)