Esempio n. 1
0
 /**
  * Returns the height needed to draw the remaining text.
  *
  * @return a height
  */
 public float remainingHeight() {
   float result = 0f;
   for (Iterator i = images.iterator(); i.hasNext(); ) {
     Image image = (Image) i.next();
     result += image.scaledHeight();
   }
   return remainingLines() * leading + 2 * cellpadding + cellspacing + result + leading / 2.5f;
 }
Esempio n. 2
0
 /**
  * Returns the size of this font.
  *
  * @return a size
  */
 float size() {
   if (image == null) return size;
   else {
     return image.scaledHeight();
   }
 }