de.vc.jfo.tools

## Class AreaEstimator

- java.lang.Object
- - de.vc.jfo.tools.AreaEstimator

-     public class AreaEstimator
      extends java.lang.Object

  Utility class for estimating the size of an area.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `double` | `charWidthFactor`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AreaEstimator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Measure` | `estimateHeight(FlowObject sc, Measure containerWidth)`
    `Measure` | `estimateTextWidth(java.lang.String str, java.awt.Font font)`
    `Measure` | `estimateTextWidth(java.lang.String str, Measure fontSize, java.lang.String font, boolean bold, boolean italic)`
    `Measure` | `estimateWidth(FlowObject flowObject)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### charWidthFactor

          public double charWidthFactor

  - ### Constructor Detail

    - #### AreaEstimator

          public AreaEstimator()

  - ### Method Detail

    - #### estimateTextWidth

          public Measure estimateTextWidth(java.lang.String str,
                                  Measure fontSize,
                                  java.lang.String font,
                                  boolean bold,
                                  boolean italic)

    - #### estimateTextWidth

          public Measure estimateTextWidth(java.lang.String str,
                                  java.awt.Font font)

    - #### estimateWidth

          public Measure estimateWidth(FlowObject flowObject)

    - #### estimateHeight

          public Measure estimateHeight(FlowObject sc,
                               Measure containerWidth)

© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.