亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pdfprow.java

?? 源碼包含生成 PDF 和 HTML 的類庫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
			xPos -= widths[newStart - 1];		}		xPos -= cells[newStart].getLeft();		for (int k = newStart; k < colEnd; ++k) {			PdfPCell cell = cells[k];			if (cell == null)				continue;			writeBorderAndBackground(xPos, yPos, cell, canvases);			Image img = cell.getImage();			float tly = 0;			switch (cell.getVerticalAlignment()) {			case Element.ALIGN_BOTTOM:				tly = cell.getTop() + yPos - maxHeight + cell.getHeight()						- cell.getEffectivePaddingTop();				break;			case Element.ALIGN_MIDDLE:				tly = cell.getTop() + yPos + (cell.getHeight() - maxHeight) / 2						- cell.getEffectivePaddingTop();				break;			default:				tly = cell.getTop() + yPos - cell.getEffectivePaddingTop();				break;			}			if (img != null) {                if (cell.getRotation() != 0) {                    img = Image.getInstance(img);                    img.setRotation(img.getImageRotation() + (float)(cell.getRotation() * Math.PI / 180.0));                }				boolean vf = false;				if (cell.getHeight() > maxHeight) {					img.scalePercent(100);					float scale = (maxHeight - cell.getEffectivePaddingTop() - cell							.getEffectivePaddingBottom())							/ img.getScaledHeight();					img.scalePercent(scale * 100);					vf = true;				}				float left = cell.getLeft() + xPos						+ cell.getEffectivePaddingLeft();				if (vf) {					switch (cell.getHorizontalAlignment()) {					case Element.ALIGN_CENTER:						left = xPos								+ (cell.getLeft() + cell.getEffectivePaddingLeft()										+ cell.getRight()										- cell.getEffectivePaddingRight() - img										.getScaledWidth()) / 2;						break;					case Element.ALIGN_RIGHT:						left = xPos + cell.getRight()								- cell.getEffectivePaddingRight()								- img.getScaledWidth();						break;					default:						break;					}					tly = cell.getTop() + yPos - cell.getEffectivePaddingTop();				}				img.setAbsolutePosition(left, tly - img.getScaledHeight());				try {					canvases[PdfPTable.TEXTCANVAS].addImage(img);				} catch (DocumentException e) {					throw new ExceptionConverter(e);				}			} else {                // rotation sponsored by Connection GmbH                if (cell.getRotation() == 90 || cell.getRotation() == 270) {                    float netWidth = maxHeight - cell.getEffectivePaddingTop() - cell.getEffectivePaddingBottom();                    float netHeight = cell.getWidth() - cell.getEffectivePaddingLeft() - cell.getEffectivePaddingRight();                    ColumnText ct = ColumnText.duplicate(cell.getColumn());                    ct.setCanvases(canvases);                    ct.setSimpleColumn(0, 0, netWidth + 0.001f, -netHeight);                    try {                        ct.go(true);                    } catch (DocumentException e) {                        throw new ExceptionConverter(e);                    }                    float calcHeight = -ct.getYLine();                    if (netWidth <= 0 || netHeight <= 0)                        calcHeight = 0;                    if (calcHeight > 0) {                        if (cell.isUseDescender())                            calcHeight -= ct.getDescender();                        ct = ColumnText.duplicate(cell.getColumn());                        ct.setCanvases(canvases);                        ct.setSimpleColumn(0, -0.001f, netWidth + 0.001f, calcHeight);                        float pivotX;                        float pivotY;                        if (cell.getRotation() == 90) {                            pivotY = cell.getTop() + yPos - maxHeight + cell.getEffectivePaddingBottom();                            switch (cell.getVerticalAlignment()) {                            case Element.ALIGN_BOTTOM:                                pivotX = cell.getLeft() + xPos + cell.getWidth() - cell.getEffectivePaddingRight();                                break;                            case Element.ALIGN_MIDDLE:                                pivotX = cell.getLeft() + xPos + (cell.getWidth() + cell.getEffectivePaddingLeft() - cell.getEffectivePaddingRight() + calcHeight) / 2;                                break;                            default: //top                                pivotX = cell.getLeft() + xPos + cell.getEffectivePaddingLeft() + calcHeight;                                break;                            }                            saveAndRotateCanvases(canvases, 0,1,-1,0,pivotX,pivotY);                        }                        else {                            pivotY = cell.getTop() + yPos - cell.getEffectivePaddingTop();                            switch (cell.getVerticalAlignment()) {                            case Element.ALIGN_BOTTOM:                                pivotX = cell.getLeft() + xPos + cell.getEffectivePaddingLeft();                                break;                            case Element.ALIGN_MIDDLE:                                pivotX = cell.getLeft() + xPos + (cell.getWidth() + cell.getEffectivePaddingLeft() - cell.getEffectivePaddingRight() - calcHeight) / 2;                                break;                            default: //top                                pivotX = cell.getLeft() + xPos + cell.getWidth() - cell.getEffectivePaddingRight() - calcHeight;                                break;                            }                            saveAndRotateCanvases(canvases, 0,-1,1,0,pivotX,pivotY);                        }                        try {                            ct.go();                        } catch (DocumentException e) {                            throw new ExceptionConverter(e);                        } finally {                            restoreCanvases(canvases);                        }                    }                }                 else {                    float fixedHeight = cell.getFixedHeight();                    float rightLimit = cell.getRight() + xPos                            - cell.getEffectivePaddingRight();                    float leftLimit = cell.getLeft() + xPos                            + cell.getEffectivePaddingLeft();                    if (cell.isNoWrap()) {                        switch (cell.getHorizontalAlignment()) {                            case Element.ALIGN_CENTER:                                rightLimit += 10000;                                leftLimit -= 10000;                                break;                            case Element.ALIGN_RIGHT:                            	if (cell.getRotation() == 180) {                            		rightLimit += 20000;                            	}                            	else {                            		leftLimit -= 20000;                            	}                                break;                            default:                            	if (cell.getRotation() == 180) {                            		leftLimit -= 20000;                            	}                            	else {                            		rightLimit += 20000;                            	}                                break;                        }                    }                    ColumnText ct = ColumnText.duplicate(cell.getColumn());                    ct.setCanvases(canvases);                    float bry = tly                            - (maxHeight /* cell.height() */                            - cell.getEffectivePaddingTop() - cell.getEffectivePaddingBottom());                    if (fixedHeight > 0) {                        if (cell.getHeight() > maxHeight) {                            tly = cell.getTop() + yPos - cell.getEffectivePaddingTop();                            bry = cell.getTop() + yPos - maxHeight + cell.getEffectivePaddingBottom();                        }                    }                    if ((tly > bry || ct.zeroHeightElement()) && leftLimit < rightLimit) {                        ct.setSimpleColumn(leftLimit, bry - 0.001f,	rightLimit, tly);                        if (cell.getRotation() == 180) {                            float shx = leftLimit + rightLimit;                            float shy = yPos + yPos - maxHeight + cell.getEffectivePaddingBottom() - cell.getEffectivePaddingTop();                            saveAndRotateCanvases(canvases, -1,0,0,-1,shx,shy);                        }                        try {                            ct.go();                        } catch (DocumentException e) {                            throw new ExceptionConverter(e);                        } finally {                            if (cell.getRotation() == 180) {                                restoreCanvases(canvases);                            }                        }                    }                }            }			PdfPCellEvent evt = cell.getCellEvent();			if (evt != null) {				Rectangle rect = new Rectangle(cell.getLeft() + xPos, cell.getTop()						+ yPos - maxHeight, cell.getRight() + xPos, cell.getTop()						+ yPos);				evt.cellLayout(cell, rect, canvases);			}		}	}	/**	 * Checks if the dimensions of the columns were calculated.	 * @return true if the dimensions of the columns were calculated	 */	public boolean isCalculated() {		return calculated;	}	/**	 * Gets the maximum height of the row (i.e. of the 'highest' cell).	 * @return the maximum height of the row	 */	public float getMaxHeights() {		if (calculated)			return maxHeight;		else			return calculateHeights();	}	/**	 * Changes the maximum height of the row (to make it higher).	 * (added by Jin-Hsia Yang)	 * @param maxHeight the new maximum height	 */	public void setMaxHeights(float maxHeight) {		this.maxHeight = maxHeight;	}	//end add	float[] getEventWidth(float xPos) {		int n = 0;		for (int k = 0; k < cells.length; ++k) {			if (cells[k] != null)				++n;		}		float width[] = new float[n + 1];		n = 0;		width[n++] = xPos;		for (int k = 0; k < cells.length; ++k) {			if (cells[k] != null) {				width[n] = width[n - 1] + cells[k].getWidth();				++n;			}		}		return width;	}	/**	 * Splits a row to newHeight. The returned row is the remainder. It will	 * return null if the newHeight was so small that only an empty row would	 * result.	 * 	 * @param newHeight	 *            the new height	 * @return the remainder row or null if the newHeight was so small that only	 *         an empty row would result	 */	public PdfPRow splitRow(float newHeight) {		PdfPCell newCells[] = new PdfPCell[cells.length];		float fh[] = new float[cells.length * 2];		boolean allEmpty = true;		for (int k = 0; k < cells.length; ++k) {			PdfPCell cell = cells[k];			if (cell == null)				continue;			fh[k * 2] = cell.getFixedHeight();			fh[k * 2 + 1] = cell.getMinimumHeight();			Image img = cell.getImage();			PdfPCell c2 = new PdfPCell(cell);			if (img != null) {				if (newHeight > cell.getEffectivePaddingBottom()						+ cell.getEffectivePaddingTop() + 2) {					c2.setPhrase(null);					allEmpty = false;				}			} else {                int status;                float y;				ColumnText ct = ColumnText.duplicate(cell.getColumn());                if (cell.getRotation() == 90 || cell.getRotation() == 270) {                    y = setColumn(ct,                            cell.getTop() - newHeight + cell.getEffectivePaddingBottom(),                            cell.getLeft() + cell.getEffectivePaddingLeft(),                            cell.getTop() - cell.getEffectivePaddingTop(),                            cell.getRight() - cell.getEffectivePaddingRight());                }                else {                    float rightLimit = cell.isNoWrap() ? 20000 : cell.getRight()                            - cell.getEffectivePaddingRight();                    float y1 = cell.getTop() - newHeight                            + cell.getEffectivePaddingBottom();                    float y2 = cell.getTop() - cell.getEffectivePaddingTop();                    y = setColumn(ct,                            cell.getLeft() + cell.getEffectivePaddingLeft(), y1,                            rightLimit, y2);                }				try {					status = ct.go(true);				} catch (DocumentException e) {					throw new ExceptionConverter(e);				}				boolean thisEmpty = (ct.getYLine() == y);				if (thisEmpty)					ct = ColumnText.duplicate(cell.getColumn());				allEmpty = (allEmpty && thisEmpty);				if ((status & ColumnText.NO_MORE_TEXT) == 0 || thisEmpty) {					c2.setColumn(ct);                    ct.setFilledWidth(0);				} else {					c2.setPhrase(null);				}			}			newCells[k] = c2;			cell.setFixedHeight(newHeight);		}		if (allEmpty) {			for (int k = 0; k < cells.length; ++k) {				PdfPCell cell = cells[k];				if (cell == null)					continue;				float f = fh[k * 2];				float m = fh[k * 2 + 1];				if (f <= 0)					cell.setMinimumHeight(m);				else					cell.setFixedHeight(f);			}			return null;		}		calculateHeights();		PdfPRow split = new PdfPRow(newCells);		split.widths = (float[]) widths.clone();		split.calculateHeights();		return split;	}		/**	 * Returns the array of cells in the row.	 * Please be extremely careful with this method.	 * Use the cells as read only objects.	 * @return	an array of cells	 * @since	2.1.1	 */	public PdfPCell[] getCells() {		return cells;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费三区一区二区| 日韩一区二区三区四区| 韩国v欧美v日本v亚洲v| 麻豆精品久久精品色综合| 亚洲国产人成综合网站| 亚洲午夜久久久久久久久电影网| 国产精品久久久久婷婷| 国产精品福利av| 综合网在线视频| 亚洲精选一二三| 亚洲黄色免费电影| 亚洲一区免费视频| 天天影视网天天综合色在线播放| 偷拍与自拍一区| 卡一卡二国产精品| 国产精品99久久久久久宅男| 欧美日韩国产小视频| 欧美人牲a欧美精品| 日韩欧美一级在线播放| 久久久久久影视| 国产蜜臀av在线一区二区三区| 日本一区二区三级电影在线观看| 国产精品家庭影院| 一区二区免费在线| 免费观看在线综合| 国产精品资源网| 色综合久久综合网97色综合| 欧美另类变人与禽xxxxx| 日韩一区二区影院| 欧美激情一区二区三区在线| 一区二区日韩电影| 九一久久久久久| 99精品视频在线免费观看| 欧美丝袜丝nylons| 久久九九全国免费| 亚洲二区视频在线| 国产成人在线视频网站| 欧美日韩视频在线第一区| 2020国产成人综合网| 亚洲黄色免费网站| 国产专区综合网| 欧洲精品在线观看| 久久综合999| 五月激情综合婷婷| 波多野结衣中文字幕一区二区三区| 欧洲激情一区二区| 国产精品久久久久久久久果冻传媒| 午夜欧美电影在线观看| av电影在线观看不卡| 欧美一卡2卡3卡4卡| 亚洲视频每日更新| 国产美女精品人人做人人爽| 欧美日韩国产区一| 亚洲视频一区二区在线| 国产一区欧美日韩| 欧美一区二区三区系列电影| 亚洲天堂免费在线观看视频| 韩国av一区二区三区在线观看| 欧美日韩午夜在线| 亚洲色图欧洲色图婷婷| 国产91精品露脸国语对白| 欧美精品一区二区三区四区 | 国产精品成人在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎 | 日韩美女视频19| 韩国午夜理伦三级不卡影院| 欧美喷潮久久久xxxxx| 亚洲精品免费一二三区| 成人网男人的天堂| 久久久精品欧美丰满| 蜜桃视频免费观看一区| 欧美精品一二三| 丝袜亚洲另类欧美| 欧美精品自拍偷拍| 日韩精品一区第一页| 欧美日韩久久久| 日韩中文字幕91| 69堂精品视频| 久久精品理论片| 欧美成va人片在线观看| 精品在线你懂的| 精品美女一区二区| 国产乱码精品一区二区三区五月婷| 日韩一级片网站| 激情综合网最新| 国产视频在线观看一区二区三区| 国产一区二区中文字幕| 国产欧美日韩久久| 色综合久久综合中文综合网| 一区二区三区在线观看视频 | 日本成人在线看| 日韩欧美自拍偷拍| 国内精品免费**视频| 欧美国产一区在线| 91丝袜国产在线播放| 一区二区三区毛片| 91麻豆精品91久久久久同性| 久久99深爱久久99精品| 国产精品免费免费| 色婷婷综合五月| 亚洲sss视频在线视频| 精品久久五月天| www.亚洲人| 日韩电影免费在线看| 久久免费电影网| 91免费国产在线观看| 日韩av成人高清| 亚洲欧洲精品天堂一级| 欧美日韩另类一区| 国产乱人伦偷精品视频不卡| 亚洲丝袜美腿综合| 日韩精品一区二区三区视频| caoporen国产精品视频| 婷婷综合久久一区二区三区| 久久综合久久综合九色| 在线视频观看一区| 国产自产视频一区二区三区| 日韩av不卡一区二区| 国产精品久久久一本精品| 5858s免费视频成人| 成人免费视频一区| 日本美女一区二区三区| 亚洲美女少妇撒尿| 久久精品视频免费| 欧美一区二区三区在线电影| k8久久久一区二区三区| 蜜臂av日日欢夜夜爽一区| 亚洲精品欧美激情| 久久久久久毛片| 7777精品伊人久久久大香线蕉完整版 | 欧美一区二区三区四区五区| 国产福利精品一区| 日韩av午夜在线观看| 亚洲免费av网站| 中文字幕国产一区| 26uuu国产电影一区二区| 欧美日韩一区二区在线观看视频 | 欧美日韩在线播| 粉嫩13p一区二区三区| 久久成人18免费观看| 亚洲高清免费视频| 亚洲免费观看在线观看| 中日韩免费视频中文字幕| 91精品国产高清一区二区三区蜜臀| 99精品欧美一区二区三区小说| 国产真实乱对白精彩久久| 麻豆一区二区三区| 日韩av一级片| 日韩电影免费在线| 日本亚洲天堂网| 三级久久三级久久久| 午夜久久久久久| 亚洲成人一区在线| 午夜亚洲国产au精品一区二区| 亚洲三级在线播放| 亚洲柠檬福利资源导航| 亚洲激情自拍偷拍| 亚洲综合视频在线观看| 艳妇臀荡乳欲伦亚洲一区| 亚洲欧美一区二区在线观看| 国产精品久久久久三级| 国产精品传媒入口麻豆| 自拍偷自拍亚洲精品播放| 国产精品久久久久aaaa| 亚洲欧美日韩国产一区二区三区| 亚洲欧美成人一区二区三区| 亚洲在线观看免费| 国产精品综合网| 粉嫩av一区二区三区在线播放| 成人性生交大片免费看中文网站| 成人一区在线看| 9i看片成人免费高清| 日本高清成人免费播放| 欧美影院一区二区| 4hu四虎永久在线影院成人| 日韩三级av在线播放| 国产午夜亚洲精品不卡 | 欧美视频一区二| 日韩精品一区二区三区蜜臀| 国产香蕉久久精品综合网| 亚洲免费观看高清| 日韩黄色片在线观看| 国产精品一区二区久久不卡| 91在线视频播放地址| 欧美日免费三级在线| 亚洲精品在线免费播放| 国产精品灌醉下药二区| 日日欢夜夜爽一区| 国产成人在线视频播放| 欧美性色综合网| 欧美精品一区二区不卡 | 欧美男女性生活在线直播观看| 日韩欧美一区中文| 亚洲三级小视频| 久久99热国产| 色噜噜狠狠色综合中国| 精品国产91乱码一区二区三区| 一区二区三区在线视频免费| 国产一区二区视频在线| 欧美日韩在线播放三区四区|