org.omegahat.Graphics.Layouts
Class LayoutCalculator
java.lang.Object
|
+--org.omegahat.Graphics.Layouts.LayoutCalculator
- public class LayoutCalculator
- extends java.lang.Object
|
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 |
d
protected LayoutDescription d
widthCM
protected double widthCM
heightCM
protected double heightCM
fontSize
protected int fontSize
allocatedWidths
protected double[] allocatedWidths
allocatedHeights
protected double[] allocatedHeights
LayoutCalculator
public LayoutCalculator()
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)