Example usage for com.itextpdf.text BaseColor WHITE

List of usage examples for com.itextpdf.text BaseColor WHITE

Introduction

In this page you can find the example usage for com.itextpdf.text BaseColor WHITE.

Prototype

BaseColor WHITE

To view the source code for com.itextpdf.text BaseColor WHITE.

Click Source Link

Usage

From source file:com.softwaremagico.tm.pdf.complete.elements.LateralHeaderPdfPTable.java

License:Open Source License

protected PdfPCell createLateralVerticalTitle(String title, int rowspan) {
    Font font = new Font(FadingSunsTheme.getTitleFont(), getTitleFontSize());
    font.setColor(BaseColor.WHITE);
    Phrase content = new Phrase(title, font);
    PdfPCell titleCell = new PdfPCell(content);
    titleCell.setPadding(0);//from w w  w. ja va 2s  .co  m
    titleCell.setRowspan(rowspan);
    titleCell.setRotation(90);
    titleCell.setHorizontalAlignment(Element.ALIGN_CENTER);
    // titleCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    titleCell.setBackgroundColor(BaseColor.BLACK);
    return titleCell;
}

From source file:com.softwaremagico.tm.pdf.complete.elements.LateralHeaderPdfPTable.java

License:Open Source License

protected static PdfPCell createTableSubtitleElement(String text, int height) {
    PdfPCell cell = BaseElement.getCell(text, 0, 1, Element.ALIGN_CENTER, BaseColor.WHITE,
            FadingSunsTheme.getSubtitleFont(), FadingSunsTheme.TABLE_LINE_FONT_SIZE);
    cell.setMinimumHeight(height);/*from w  ww.  j  a  va2 s  .com*/
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.elements.VerticalTable.java

License:Open Source License

protected static PdfPCell createSubtitleLine(String text, int fontSize, int colspan, int alignment) {
    PdfPCell cell = BaseElement.getCell(text, 0, colspan, alignment, BaseColor.WHITE,
            FadingSunsTheme.getSubtitleFont(), fontSize);
    cell.setMinimumHeight(10);/*from   w  w w.ja v a2s.  co  m*/
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.elements.VerticalTable.java

License:Open Source License

protected static PdfPCell createValueLine(String text, int fontSize) {
    PdfPCell cell = BaseElement.getCell(text, 0, 1, Element.ALIGN_CENTER, BaseColor.WHITE,
            FadingSunsTheme.getHandwrittingFont(), fontSize);
    cell.setMinimumHeight(10);/*w w  w.  ja v a 2  s  .  c  om*/
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.info.CharacterBasicsTableFactory.java

License:Open Source License

protected static PdfPCell getCell(String text, int align, int fontSize) {
    PdfPCell cell = getCell(text, 0, 1, align, BaseColor.WHITE, FadingSunsTheme.getLineFont(), fontSize);
    return cell;//w w w.  java 2s .co m
}

From source file:com.softwaremagico.tm.pdf.complete.info.CharacterBasicsTableFactory.java

License:Open Source License

protected static PdfPCell getHandwrittingCell(String text, int align, int fontSize) {
    if (text != null && text.length() > MAX_VALUE_LENGTH) {
        text = text.substring(0, MAX_VALUE_LENGTH + 1);
    }/*  w w w  .  j  a v  a 2s .co m*/
    PdfPCell cell = getCell(text, 0, 1, align, BaseColor.WHITE, FadingSunsTheme.getHandwrittingFont(),
            FadingSunsTheme.getHandWrittingFontSize(fontSize));
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.others.AnnotationsTable.java

License:Open Source License

protected static PdfPCell createSubtitleLine(String text) {
    PdfPCell cell = BaseElement.getCell(text, 1, 1, Element.ALIGN_LEFT, BaseColor.WHITE,
            FadingSunsTheme.getTitleFont(), FadingSunsTheme.ANNOTATIONS_SUBTITLE_FONT_SIZE);
    cell.setMinimumHeight(CELL_HEIGHT);/*from  w  ww. j  av  a 2s.  c om*/
    cell.setVerticalAlignment(Element.ALIGN_TOP);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.skills.SkillsTable.java

License:Open Source License

protected static PdfPCell createCompactTitle(String text, int fontSize) {
    PdfPCell cell = getCell(text, 0, 2, Element.ALIGN_CENTER, BaseColor.WHITE, FadingSunsTheme.getTitleFont(),
            fontSize);//from w w w. j ava2  s.c  o  m
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;
}

From source file:com.softwaremagico.tm.pdf.complete.skills.SkillsTable.java

License:Open Source License

protected static PdfPCell createSkillElement(CharacterPlayer characterPlayer, AvailableSkill skill,
        int fontSize, int maxColumnWidth) {
    PdfPCell cell = getCell(createSkillSufix(characterPlayer, skill, fontSize, maxColumnWidth), 0, 1,
            Element.ALIGN_LEFT, BaseColor.WHITE);
    cell.setMinimumHeight((MainSkillsTableFactory.HEIGHT / ROWS));
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;//from   w  ww.  j a v  a  2 s . c  o m
}

From source file:com.softwaremagico.tm.pdf.complete.skills.SkillsTable.java

License:Open Source License

protected static PdfPCell createSkillElement(SkillDefinition skill, int fontSize, int maxColumnWidth) {
    PdfPCell cell = getCell(createSkillSufix(skill, fontSize, maxColumnWidth), 0, 1, Element.ALIGN_LEFT,
            BaseColor.WHITE);
    cell.setMinimumHeight((MainSkillsTableFactory.HEIGHT / ROWS));
    cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return cell;//  www. j a  v a2s  .  c o m
}