List of usage examples for com.lowagie.text Rectangle setLeft
public void setLeft(float llx)
From source file:com.teag.reports.EstatePlan.java
private Rectangle placeHeading(String header) { BaseFont font = PageUtils.LoadFont("GARA.TTF"); Rectangle rect = new Rectangle(document.getPageSize()); rect.setBottom(rect.getTop() - (72 * .6f)); HeadingText ht = new HeadingText(this.writer); rect.setBottom(rect.getBottom() - (72 * .33f)); ht.setColor(57, 57, 57);/* ww w.j a v a 2 s.com*/ ht.setCapsColor(98, 98, 98); ht.display(rect, 12f, font, 3f, header, HeadingText.DHT_CENTER); rect.setTop(rect.getBottom() - _1_8TH); rect.setBottom(prctFull.getBottom()); rect.setLeft(_1_2TH); rect.setRight(rect.getLeft() + 11.0f * 72); drawHeader(client, ""); PageBorder pb = new PageBorder(writer); pb.setLicense(userInfo.getPlannerFirstName() + " " + userInfo.getPlannerLastName()); pb.drawNoBorder(document, Integer.toString(pageNum)); drawLifeExp(); return (rect); }
From source file:org.geomajas.plugin.print.component.PdfContext.java
License:Open Source License
/** * Move this rectangle to the specified bottom-left point. * * @param rect rectangle to move//from w w w .j av a 2 s . c o m * @param x new x origin * @param y new y origin */ public void moveRectangleTo(Rectangle rect, float x, float y) { float width = rect.getWidth(); float height = rect.getHeight(); rect.setLeft(x); rect.setBottom(y); rect.setRight(rect.getLeft() + width); rect.setTop(rect.getBottom() + height); }
From source file:org.geomajas.plugin.print.component.PdfContext.java
License:Open Source License
/** * Translate this rectangle over the specified following distances. * * @param rect rectangle to move/*from w w w . j av a2 s. co m*/ * @param dx delta x * @param dy delta y */ public void translateRectangle(Rectangle rect, float dx, float dy) { float width = rect.getWidth(); float height = rect.getHeight(); rect.setLeft(rect.getLeft() + dx); rect.setBottom(rect.getBottom() + dy); rect.setRight(rect.getLeft() + dx + width); rect.setTop(rect.getBottom() + dy + height); }