⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplecell.java

📁 源码包含生成 PDF 和 HTML 的类库
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		canvases[PdfPTable.BACKGROUNDCANVAS].rectangle(rect);		rect.setBackgroundColor(null);		canvases[PdfPTable.LINECANVAS].rectangle(rect);	}		/** Sets the padding parameters if they are undefined. 	 * @param padding	 */	public void setPadding(float padding) {		if (Float.isNaN(padding_right)) {			setPadding_right(padding);		}		if (Float.isNaN(padding_left)) {			setPadding_left(padding);		}		if (Float.isNaN(padding_top)) {			setPadding_top(padding);		}		if (Float.isNaN(padding_bottom)) {			setPadding_bottom(padding);		}	}		/**	 * @return Returns the colspan.	 */	public int getColspan() {		return colspan;	}	/**	 * @param colspan The colspan to set.	 */	public void setColspan(int colspan) {		if (colspan > 0) this.colspan = colspan;	}	/**	 * @return Returns the padding_bottom.	 */	public float getPadding_bottom() {		return padding_bottom;	}	/**	 * @param padding_bottom The padding_bottom to set.	 */	public void setPadding_bottom(float padding_bottom) {		this.padding_bottom = padding_bottom;	}	/**	 * @return Returns the padding_left.	 */	public float getPadding_left() {		return padding_left;	}	/**	 * @param padding_left The padding_left to set.	 */	public void setPadding_left(float padding_left) {		this.padding_left = padding_left;	}	/**	 * @return Returns the padding_right.	 */	public float getPadding_right() {		return padding_right;	}	/**	 * @param padding_right The padding_right to set.	 */	public void setPadding_right(float padding_right) {		this.padding_right = padding_right;	}	/**	 * @return Returns the padding_top.	 */	public float getPadding_top() {		return padding_top;	}	/**	 * @param padding_top The padding_top to set.	 */	public void setPadding_top(float padding_top) {		this.padding_top = padding_top;	}	/**	 * @return Returns the spacing.	 */	public float getSpacing_left() {		return spacing_left;	}	/**	 * @return Returns the spacing.	 */	public float getSpacing_right() {		return spacing_right;	}	/**	 * @return Returns the spacing.	 */	public float getSpacing_top() {		return spacing_top;	}	/**	 * @return Returns the spacing.	 */	public float getSpacing_bottom() {		return spacing_bottom;	}		/**	 * @param spacing The spacing to set.	 */	public void setSpacing(float spacing) {		this.spacing_left = spacing;		this.spacing_right = spacing;		this.spacing_top = spacing;		this.spacing_bottom = spacing;	}		/**	 * @param spacing The spacing to set.	 */	public void setSpacing_left(float spacing) {		this.spacing_left = spacing;	}		/**	 * @param spacing The spacing to set.	 */	public void setSpacing_right(float spacing) {		this.spacing_right = spacing;	}		/**	 * @param spacing The spacing to set.	 */	public void setSpacing_top(float spacing) {		this.spacing_top = spacing;	}		/**	 * @param spacing The spacing to set.	 */	public void setSpacing_bottom(float spacing) {		this.spacing_bottom = spacing;	}		/**	 * @return Returns the cellgroup.	 */	public boolean isCellgroup() {		return cellgroup;	}	/**	 * @param cellgroup The cellgroup to set.	 */	public void setCellgroup(boolean cellgroup) {		this.cellgroup = cellgroup;	}	/**	 * @return Returns the horizontal alignment.	 */	public int getHorizontalAlignment() {		return horizontalAlignment;	}	/**	 * @param horizontalAlignment The horizontalAlignment to set.	 */	public void setHorizontalAlignment(int horizontalAlignment) {		this.horizontalAlignment = horizontalAlignment;	}	/**	 * @return Returns the vertical alignment.	 */	public int getVerticalAlignment() {		return verticalAlignment;	}	/**	 * @param verticalAlignment The verticalAligment to set.	 */	public void setVerticalAlignment(int verticalAlignment) {		this.verticalAlignment = verticalAlignment;	}	/**	 * @return Returns the width.	 */	public float getWidth() {		return width;	}	/**	 * @param width The width to set.	 */	public void setWidth(float width) {		this.width = width;	}	/**	 * @return Returns the widthpercentage.	 */	public float getWidthpercentage() {		return widthpercentage;	}	/**	 * @param widthpercentage The widthpercentage to set.	 */	public void setWidthpercentage(float widthpercentage) {		this.widthpercentage = widthpercentage;	}	/**	 * @return Returns the useAscender.	 */	public boolean isUseAscender() {		return useAscender;	}	/**	 * @param useAscender The useAscender to set.	 */	public void setUseAscender(boolean useAscender) {		this.useAscender = useAscender;	}	/**	 * @return Returns the useBorderPadding.	 */	public boolean isUseBorderPadding() {		return useBorderPadding;	}	/**	 * @param useBorderPadding The useBorderPadding to set.	 */	public void setUseBorderPadding(boolean useBorderPadding) {		this.useBorderPadding = useBorderPadding;	}	/**	 * @return Returns the useDescender.	 */	public boolean isUseDescender() {		return useDescender;	}	/**	 * @param useDescender The useDescender to set.	 */	public void setUseDescender(boolean useDescender) {		this.useDescender = useDescender;	}		/**	 * @return Returns the content.	 */	ArrayList getContent() {		return content;	}	/**	 * @see com.lowagie.text.TextElementArray#add(java.lang.Object)	 */	public boolean add(Object o) {		try {			addElement((Element)o);			return true;		}		catch(ClassCastException e) {			return false;		}		catch(BadElementException e) {			throw new ExceptionConverter(e);		}	}	/**	 * @see com.lowagie.text.Element#type()	 */	public int type() {		return Element.CELL;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -