public void addElement(Element element) { super.add(element); }
public PdfPCell getPdfPCell() { if ( cell != null ) { return cell; } cell = createPdfPCell(); return cell; }
public StylableChapter(StylableDocument ownerDocument, IStylableContainer parent, StylableParagraph title, int number) { super(title, number); this.ownerDocument = ownerDocument; this.parent = parent; super.setTriggerNewPage(false); }
public Section addSection( float indentation, Paragraph title, int numberDepth ) { if ( isAddedCompletely() ) { throw new IllegalStateException( "This LargeElement has already been added to the Document." ); } Section section = new ExtendedSection( title, numberDepth ); section.setIndentation( indentation ); add( section ); return section; }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
public void applyStyles(Style style) { this.lastStyleApplied = style; StyleParagraphProperties paragraphProperties = style .getParagraphProperties(); if (paragraphProperties != null) { Color backgroundColor = paragraphProperties.getBackgroundColor(); if (backgroundColor != null) { super.getPdfPCell().setBackgroundColor(backgroundColor); } // border StyleBorder border = paragraphProperties.getBorder(); StyleUtils.applyStyles(border, this.getPdfPCell()); // border-top StyleBorder borderTop = paragraphProperties.getBorderTop(); StyleUtils.applyStyles(borderTop, this.getPdfPCell()); // border-bottom StyleBorder borderBottom = paragraphProperties.getBorderBottom(); StyleUtils.applyStyles(borderBottom, this.getPdfPCell()); // border-left StyleBorder borderLeft = paragraphProperties.getBorderLeft(); StyleUtils.applyStyles(borderLeft, this.getPdfPCell()); // border-right StyleBorder borderRight = paragraphProperties.getBorderRight(); StyleUtils.applyStyles(borderRight, this.getPdfPCell()); } }
public Section addSection( float indentation, Paragraph title, int numberDepth ) { if ( isAddedCompletely() ) { throw new IllegalStateException( "This LargeElement has already been added to the Document." ); } Section section = new ExtendedSection( title, numberDepth ); section.setIndentation( indentation ); add( section ); return section; }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
public Section addSection( float indentation, Paragraph title, int numberDepth ) { if ( isAddedCompletely() ) { throw new IllegalStateException( "This LargeElement has already been added to the Document." ); } Section section = new ExtendedSection( title, numberDepth ); section.setIndentation( indentation ); add( section ); return section; }
public void addElement( Element element ) { super.add( element ); }
public PdfPCell getPdfPCell() { if ( cell != null ) { return cell; } cell = createPdfPCell(); return cell; }
@Override public Paragraph getTitle() { if ( computedTitle == null ) { bookmarkTitleParagraph = ExtendedSection.ancestorConstructTitle( getParagraphFactory(), title, numbers, numberDepth, numberStyle ); computedTitle = ExtendedSection.constructTitle( getParagraphFactory(), bookmarkTitleParagraph, numbers, numberDepth, numberStyle, cell ); } return computedTitle; }
public StylableChapter( StylableDocument ownerDocument, IStylableContainer parent, StylableParagraph title, int number ) { super( title, number ); this.ownerDocument = ownerDocument; this.parent = parent; super.setTriggerNewPage( false ); }
public MarkedSection addMarkedSection() { MarkedSection section = new MarkedSection( new ExtendedSection( null, numberDepth + 1 ) ); add( section ); return section; }
public PdfPCell getPdfPCell() { if ( cell != null ) { return cell; } cell = createPdfPCell(); return cell; }
public MarkedSection addMarkedSection() { MarkedSection section = new MarkedSection( new ExtendedSection( null, numberDepth + 1 ) ); add( section ); return section; }
public MarkedSection addMarkedSection() { MarkedSection section = new MarkedSection( new ExtendedSection( null, numberDepth + 1 ) ); add( section ); return section; }