com.lowagie.text.Rectangle.updateBorderBasedOnWidth()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中com.lowagie.text.Rectangle.updateBorderBasedOnWidth方法的一些代码示例,展示了Rectangle.updateBorderBasedOnWidth的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.updateBorderBasedOnWidth方法的具体详情如下:
包路径:com.lowagie.text.Rectangle
类名称:Rectangle
方法名:updateBorderBasedOnWidth

Rectangle.updateBorderBasedOnWidth介绍

[英]Helper function updating the border flag for a side based on the specified width. A width of 0 will disable the border on that side. Any other width enables it.
[中]助手函数根据指定的宽度更新边的边界标志。宽度为0将禁用该侧的边框。任何其他宽度都可以启用它。

代码示例

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Sets the width of the right border.
 * 
 * @param borderWidthRight
 *          a width
 */
public void setBorderWidthRight(float borderWidthRight) {
 this.borderWidthRight = borderWidthRight;
 updateBorderBasedOnWidth(borderWidthRight, RIGHT);
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Sets the width of the top border.
 * 
 * @param borderWidthTop a width
 */
public void setBorderWidthTop(float borderWidthTop) {
  this.borderWidthTop = borderWidthTop;
  updateBorderBasedOnWidth(borderWidthTop, TOP);
}

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Sets the width of the bottom border.
 * 
 * @param borderWidthBottom a width
 */
public void setBorderWidthBottom(float borderWidthBottom) {
  this.borderWidthBottom = borderWidthBottom;
  updateBorderBasedOnWidth(borderWidthBottom, BOTTOM);
}

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Sets the width of the top border.
 * 
 * @param borderWidthTop a width
 */
public void setBorderWidthTop(float borderWidthTop) {
  this.borderWidthTop = borderWidthTop;
  updateBorderBasedOnWidth(borderWidthTop, TOP);
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Sets the width of the right border.
 * 
 * @param borderWidthRight a width
 */
public void setBorderWidthRight(float borderWidthRight) {
  this.borderWidthRight = borderWidthRight;
  updateBorderBasedOnWidth(borderWidthRight, RIGHT);
}

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Sets the width of the left border.
 * 
 * @param borderWidthLeft a width
 */
public void setBorderWidthLeft(float borderWidthLeft) {
  this.borderWidthLeft = borderWidthLeft;
  updateBorderBasedOnWidth(borderWidthLeft, LEFT);
}

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Sets the width of the right border.
 * 
 * @param borderWidthRight a width
 */
public void setBorderWidthRight(float borderWidthRight) {
  this.borderWidthRight = borderWidthRight;
  updateBorderBasedOnWidth(borderWidthRight, RIGHT);
}

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Sets the width of the left border.
 * 
 * @param borderWidthLeft
 *          a width
 */
public void setBorderWidthLeft(float borderWidthLeft) {
 this.borderWidthLeft = borderWidthLeft;
 updateBorderBasedOnWidth(borderWidthLeft, LEFT);
}

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Sets the width of the top border.
 * 
 * @param borderWidthTop
 *          a width
 */
public void setBorderWidthTop(float borderWidthTop) {
 this.borderWidthTop = borderWidthTop;
 updateBorderBasedOnWidth(borderWidthTop, TOP);
}

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Sets the width of the bottom border.
 * 
 * @param borderWidthBottom
 *          a width
 */
public void setBorderWidthBottom(float borderWidthBottom) {
 this.borderWidthBottom = borderWidthBottom;
 updateBorderBasedOnWidth(borderWidthBottom, BOTTOM);
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Sets the width of the left border.
 * 
 * @param borderWidthLeft a width
 */
public void setBorderWidthLeft(float borderWidthLeft) {
  this.borderWidthLeft = borderWidthLeft;
  updateBorderBasedOnWidth(borderWidthLeft, LEFT);
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Sets the width of the bottom border.
 * 
 * @param borderWidthBottom a width
 */
public void setBorderWidthBottom(float borderWidthBottom) {
  this.borderWidthBottom = borderWidthBottom;
  updateBorderBasedOnWidth(borderWidthBottom, BOTTOM);
}

相关文章

微信公众号

最新文章

更多