Tabnine Logo
PdfCell.cellspacing
Code IndexAdd Tabnine to your IDE (free)

How to use
cellspacing
method
in
com.lowagie.text.pdf.PdfCell

Best Java code snippets using com.lowagie.text.pdf.PdfCell.cellspacing (Showing top 6 results out of 315)

origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Sets the bottom of the Rectangle and determines the proper {link #verticalOffset}
 * to appropriately align the contents vertically.
 * @param value
 */
public void setBottom(float value) {
  super.setBottom(value);
  float firstLineRealHeight = firstLineRealHeight();
  float totalHeight = ury - value; // can't use top (already compensates for cellspacing)
  float nonContentHeight = (cellpadding() * 2f) + (cellspacing() * 2f);
  nonContentHeight += getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
  float interiorHeight = totalHeight - nonContentHeight;
  float extraHeight = 0.0f;
  switch (verticalAlignment) {
    case Element.ALIGN_BOTTOM:
      extraHeight = interiorHeight - contentHeight;
      break;
    case Element.ALIGN_MIDDLE:
      extraHeight = (interiorHeight - contentHeight) / 2.0f;
      break;
    default:    // ALIGN_TOP
      extraHeight = 0f;
  }
  extraHeight += cellpadding() + cellspacing();
  extraHeight += getBorderWidthInside(TOP);
  if (firstLine != null) {
    firstLine.height = firstLineRealHeight + extraHeight;
  }
}
origin: com.github.librepdf/openpdf

/**
 * Sets the bottom of the Rectangle and determines the proper {link #verticalOffset}
 * to appropriately align the contents vertically.
 * @param value
 */
public void setBottom(float value) {
  super.setBottom(value);
  float firstLineRealHeight = firstLineRealHeight();
  float totalHeight = ury - value; // can't use top (already compensates for cellspacing)
  float nonContentHeight = (cellpadding() * 2f) + (cellspacing() * 2f);
  nonContentHeight += getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
  float interiorHeight = totalHeight - nonContentHeight;
  float extraHeight = 0.0f;
  switch (verticalAlignment) {
    case Element.ALIGN_BOTTOM:
      extraHeight = interiorHeight - contentHeight;
      break;
    case Element.ALIGN_MIDDLE:
      extraHeight = (interiorHeight - contentHeight) / 2.0f;
      break;
    default:    // ALIGN_TOP
      extraHeight = 0f;
  }
  extraHeight += cellpadding() + cellspacing();
  extraHeight += getBorderWidthInside(TOP);
  if (firstLine != null) {
    firstLine.height = firstLineRealHeight + extraHeight;
  }
}
origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Sets the bottom of the Rectangle and determines the proper {link #verticalOffset}
 * to appropriately align the contents vertically.
 * @param value
 */
public void setBottom(float value) {
  super.setBottom(value);
  float firstLineRealHeight = firstLineRealHeight();
  float totalHeight = ury - value; // can't use top (already compensates for cellspacing)
  float nonContentHeight = (cellpadding() * 2f) + (cellspacing() * 2f);
  nonContentHeight += getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
  float interiorHeight = totalHeight - nonContentHeight;
  float extraHeight = 0.0f;
  switch (verticalAlignment) {
    case Element.ALIGN_BOTTOM:
      extraHeight = interiorHeight - contentHeight;
      break;
    case Element.ALIGN_MIDDLE:
      extraHeight = (interiorHeight - contentHeight) / 2.0f;
      break;
    default:    // ALIGN_TOP
      extraHeight = 0f;
  }
  extraHeight += cellpadding() + cellspacing();
  extraHeight += getBorderWidthInside(TOP);
  if (firstLine != null) {
    firstLine.height = firstLineRealHeight + extraHeight;
  }
}
origin: es.gob.afirma/afirma-crypto-pdf-itext

float newBottom = top - contentHeight - (2f * cellpadding()) - (2f * cellspacing());
newBottom -= getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
setBottom(newBottom);
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

float newBottom = top - contentHeight - (2f * cellpadding()) - (2f * cellspacing());
newBottom -= getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
setBottom(newBottom);
origin: com.github.librepdf/openpdf

float newBottom = top - contentHeight - (2f * cellpadding()) - (2f * cellspacing());
newBottom -= getBorderWidthInside(TOP) + getBorderWidthInside(BOTTOM);
setBottom(newBottom);
com.lowagie.text.pdfPdfCellcellspacing

Javadoc

This is the cellspacing of the cell.

Popular methods of PdfCell

  • <init>
    Constructs a PdfCell-object.
  • addImage
    Adds an image to this Cell.
  • addLine
  • addList
  • cellpadding
    Gets the cellpadding of a cell..
  • cloneNonPositionParameters
  • firstLineRealHeight
    Calculates what the height of the first line should be so that the content will be flush with the to
  • flushCurrentLine
  • getBorderWidthBottom
  • getBorderWidthInside
    Gets the amount of the border for the specified side that is inside the Rectangle. For non-variable
  • getBorderWidthLeft
  • getBorderWidthRight
  • getBorderWidthLeft,
  • getBorderWidthRight,
  • getBorderWidthTop,
  • getBottom,
  • getHeight,
  • getImages,
  • getLeft,
  • getLines,
  • getRight

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now