Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
iText 5 itextpdf.jar Source Code
itextpdf.jar is a component in iText 5 Java library to provide core functionalities.
iText Java library allows you to generate and manage PDF documents.
The Source Code files are provided at iText GitHub site.
You can compile it to generate your JAR file, using pom.xml as the build configuration file.
The source code of itextpdf-5.5.14.jar is provided below:
✍: FYIcenter.com
⏎ com/itextpdf/awt/geom/RectangularShape.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This code was originally part of the Apache Harmony project. * The Apache Harmony project has been discontinued. * That's why we imported the code into iText. */ /** * @author Denis M. Kishenko */ package com.itextpdf.awt.geom; public abstract class RectangularShape implements Shape, Cloneable { protected RectangularShape() { } public abstract double getX(); public abstract double getY(); public abstract double getWidth(); public abstract double getHeight(); public abstract boolean isEmpty(); public abstract void setFrame(double x, double y, double w, double h); public double getMinX() { return getX(); } public double getMinY() { return getY(); } public double getMaxX() { return getX() + getWidth(); } public double getMaxY() { return getY() + getHeight(); } public double getCenterX() { return getX() + getWidth() / 2.0; } public double getCenterY() { return getY() + getHeight() / 2.0; } public Rectangle2D getFrame() { return new Rectangle2D.Double(getX(), getY(), getWidth(), getHeight()); } public void setFrame(Point2D loc, Dimension2D size) { setFrame(loc.getX(), loc.getY(), size.getWidth(), size.getHeight()); } public void setFrame(Rectangle2D r) { setFrame(r.getX(), r.getY(), r.getWidth(), r.getHeight()); } public void setFrameFromDiagonal(double x1, double y1, double x2, double y2) { double rx, ry, rw, rh; if (x1 < x2) { rx = x1; rw = x2 - x1; } else { rx = x2; rw = x1 - x2; } if (y1 < y2) { ry = y1; rh = y2 - y1; } else { ry = y2; rh = y1 - y2; } setFrame(rx, ry, rw, rh); } public void setFrameFromDiagonal(Point2D p1, Point2D p2) { setFrameFromDiagonal(p1.getX(), p1.getY(), p2.getX(), p2.getY()); } public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY) { double width = Math.abs(cornerX - centerX); double height = Math.abs(cornerY - centerY); setFrame(centerX - width, centerY - height, width * 2.0, height * 2.0); } public void setFrameFromCenter(Point2D center, Point2D corner) { setFrameFromCenter(center.getX(), center.getY(), corner.getX(), corner.getY()); } public boolean contains(Point2D point) { return contains(point.getX(), point.getY()); } public boolean intersects(Rectangle2D rect) { return intersects(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight()); } public boolean contains(Rectangle2D rect) { return contains(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight()); } public Rectangle getBounds() { int x1 = (int)Math.floor(getMinX()); int y1 = (int)Math.floor(getMinY()); int x2 = (int)Math.ceil(getMaxX()); int y2 = (int)Math.ceil(getMaxY()); return new Rectangle(x1, y1, x2 - x1, y2 - y1); } public PathIterator getPathIterator(AffineTransform t, double flatness) { return new FlatteningPathIterator(getPathIterator(t), flatness); } @Override public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } } }
⏎ com/itextpdf/awt/geom/RectangularShape.java
Or download all of them as a single archive file:
File name: itextpdf-5.5.14-fyi.zip File size: 2163839 bytes Release date: 2009-10-09 Download
⇒ iText-2.1.6.jar - iText, a JAVA-PDF library
⇐ iText layout.jar Source Code
2021-07-03, 75697👍, 0💬
Popular Posts:
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...