List of usage examples for com.itextpdf.text Section setComplete
public void setComplete(final boolean complete)
From source file:eu.aniketos.wp1.ststool.report.pdfgenerator.ReportContentFactory.java
License:Open Source License
private void buildSectionRiskAnalysis(Section section) { String sectionIntro = "The purpose of the threat analysis is to present the impact of events in the overall model, when they threaten specific elements of the goal model such as goals and documents."; Paragraph pIntro = createParagraph(sectionIntro); pIntro.setSpacingAfter(8);/*w ww . j a v a 2 s . c o m*/ section.add(pIntro); if (generateAppendixDChapter()) { String appBref = "More details for threat analysis are provided in Appendix D."; section.add(createParagraph(appBref)); } RiskAnalysisTasks t = new RiskAnalysisTasks(1); DiagramAnalyser analyser = new DiagramAnalyser(); analyser.addTaskGroup(t); AnalysisDescriptor ad = new AnalysisDescriptor("Threat", FigureConstant.RISK_RES_TABLE); analyser.addTaskListener(ad); analyser.evaluateCurrentDiagram(); section.add(ad.getFinalParagraph()); section.setComplete(true); }