예제 #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;
 }
예제 #2
0
파일: PdfFont.java 프로젝트: jacksonh/mirth
 /**
  * Returns the size of this font.
  *
  * @return a size
  */
 float size() {
   if (image == null) return size;
   else {
     return image.scaledHeight();
   }
 }