Demos and Usage of com.lowagie.text.Element.Element.ALIGN_TOP


   1:         table.addCell("blah\nblah\nblah\nblah\nblah\nblah\nblah\nblah\nblah\n");
   2:         table.getDefaultCell().setVerticalAlignment(Element.ALIGN_TOP);
   3:         table.addCell("top");
   4:         document.add(table);
   5:         document.close();

View Full Code Here
   1:         shipment.setBorder(Rectangle.BOX);
   2:         shipment.setVerticalAlignment(Element.ALIGN_TOP);
   3:         shipment.setHorizontalAlignment(Element.ALIGN_CENTER);
   4:         cell.addCell(shipment);
   5:         pageTot.addCell(cell);

View Full Code Here
   1:     }
   2:     return Element.ALIGN_TOP;
   3:   }
   4: 
   5:   private int getHorizontalAlignment ()

View Full Code Here
   1: 
   2:         table.addCell(makeCell("1-Top", Element.ALIGN_TOP, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));
   3:         table.addCell(makeCell("2-Middle", Element.ALIGN_MIDDLE, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));
   4:         ...
   5:         table.addCell(makeCell("3-Bottom", Element.ALIGN_BOTTOM, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));
   6:         table.addCell(makeCell("4-Has a y", Element.ALIGN_TOP, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));
   7: 
   8:         ...
   9:         table.addCell(makeCell("5-Abcdy", Element.ALIGN_TOP, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));
  10:         table.addCell(makeCell("6-Abcdy", Element.ALIGN_MIDDLE, Element.ALIGN_LEFT, tableFont, leading, padding, borders, ascender, descender));

View Full Code Here
   1:                 return HtmlTags.ALIGN_JUSTIFIED;
   2:             case Element.ALIGN_TOP:
   3:                 return HtmlTags.ALIGN_TOP;
   4:             case Element.ALIGN_MIDDLE:
   5:                 return HtmlTags.ALIGN_MIDDLE;

View Full Code Here
   1:         tablePDF = new Table(this.model.getNumberOfColumns());
   2:         tablePDF.setDefaultVerticalAlignment(Element.ALIGN_TOP);
   3:         tablePDF.setCellsFitPage(true);
   4:         ...
   5:         Cell cell = new Cell(new Chunk(StringUtils.trimToEmpty(value), smallFont));
   6:         cell.setVerticalAlignment(Element.ALIGN_TOP);
   7:         cell.setLeading(8);
   8:         return cell;
   9:     }

View Full Code Here
   1:         table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
   2:         table.getDefaultCell().setVerticalAlignment(Element.ALIGN_TOP);
   3:     
   4:         boolean even = false;
   5:         Iterator it = pgHolder.getSource().iterator();  

View Full Code Here
   1:         table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
   2:         table.getDefaultCell().setVerticalAlignment(Element.ALIGN_TOP);
   3:     
   4:         boolean even = false;
   5:         Iterator it = pgHolder.getSource().iterator();  

View Full Code Here
   1:                     break;
   2:                 case Element.ALIGN_TOP:
   3:                     result.write("\\clvertalt".getBytes());
   4:                     break;
   5:             }

View Full Code Here
   1:                     break;
   2:                 case Element.ALIGN_TOP:
   3:                     os.write(RtfWriter.escape);
   4:                     os.write(cellVerticalAlignTop);
   5:                     break;

View Full Code Here
   1:         if (table != null)
   2:             table.setExtendLastRow(verticalAlignment == Element.ALIGN_TOP);
   3:         this.verticalAlignment = verticalAlignment;
   4:         ...
   5:         if (table != null) {
   6:             table.setExtendLastRow(verticalAlignment == Element.ALIGN_TOP);
   7:             column.addElement(table);
   8:             table.setWidthPercentage(100);
   9:         }

View Full Code Here