List of usage examples for com.itextpdf.text Image setAlignment
public void setAlignment(final int alignment)
From source file:report.pdfs.Mortgaged_PDF_Report.java
private void addBarChart(Section catPart) { Mortgaged_Bar_Chart_Report chart = new Mortgaged_Bar_Chart_Report(show, "Mortgaged Expenses Overview"); Image To_be_Added = null; try {/*from w w w .ja va 2 s . c o m*/ To_be_Added = Image.getInstance("bar_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Mortgaged_PDF_Report.java
private void addPieChart(Section catPart) { Mortgaged_Pie_Chart_Report chart = new Mortgaged_Pie_Chart_Report(show, "Comparison", "Mortgaged Expenses Overview"); Image To_be_Added = null; try {/*from w w w . java2 s.com*/ To_be_Added = Image.getInstance("pie_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Rented_PDF_Report.java
private void addBarChart(Section catPart) { Rented_Bar_Chart_Report chart = new Rented_Bar_Chart_Report(show, "Rented Expenses Overview"); Image To_be_Added = null; try {// w w w . j a va2s . co m To_be_Added = Image.getInstance("bar_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Rented_PDF_Report.java
private void addPieChart(Section catPart) { Rented_Pie_Chart_Report chart = new Rented_Pie_Chart_Report(show, "Comparison", "Rented Expenses Overview"); Image To_be_Added = null; try {//ww w . j a v a 2 s. co m To_be_Added = Image.getInstance("pie_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Slurry_PDF_Report.java
private void addBarChart(Section catPart) { Slurry_Bar_Chart_Report chart = new Slurry_Bar_Chart_Report(show, "Slurry Expenses Overview"); Image To_be_Added = null; try {/*from w w w . j a va 2 s .c o m*/ To_be_Added = Image.getInstance("bar_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Slurry_PDF_Report.java
private void addPieChart(Section catPart) { Slurry_Pie_Chart_Report chart = new Slurry_Pie_Chart_Report(show, "Comparison", "Slurry Expenses Overview"); Image To_be_Added = null; try {//from ww w . j a v a 2s .co m To_be_Added = Image.getInstance("pie_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Vet_Visit_PDF_Report.java
private void addBarChart(Section catPart) { Vet_Visit_Bar_Chart_Report chart = new Vet_Visit_Bar_Chart_Report(show, "Vet Visit Expenses Overview"); Image To_be_Added = null; try {/* ww w .ja va 2 s . co m*/ To_be_Added = Image.getInstance("bar_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Vet_Visit_PDF_Report.java
private void addPieChart(Section catPart) { Vet_Visit_Pie_Chart_Report chart = new Vet_Visit_Pie_Chart_Report(show, "Comparison", "Vet Visit Expenses Overview"); Image To_be_Added = null; try {//from w w w . j a v a2 s . c o m To_be_Added = Image.getInstance("pie_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Water_PDF_Report.java
private void addBarChart(Section catPart) { Water_Bar_Chart_Report chart = new Water_Bar_Chart_Report(show, "Water Expenses Overview"); Image To_be_Added = null; try {/* w ww .jav a 2 s . c om*/ To_be_Added = Image.getInstance("bar_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }
From source file:report.pdfs.Water_PDF_Report.java
private void addPieChart(Section catPart) { Water_Pie_Chart_Report chart = new Water_Pie_Chart_Report(show, "Comparison", "Water Expenses Overview"); Image To_be_Added = null; try {// w w w.j av a2 s . c o m To_be_Added = Image.getInstance("pie_chart.png"); } catch (BadElementException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } To_be_Added.setAlignment(Image.MIDDLE | Image.TEXTWRAP); //To_be_Added.setBorder(Image.BOX); //To_be_Added.setBorderWidth(15); catPart.add(To_be_Added); }