Java Doc for PDRectangle.java in  » PDF » PDFBox-0.7.3 » org » pdfbox » pdmodel » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » PDFBox 0.7.3 » org.pdfbox.pdmodel.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.pdfbox.pdmodel.common.PDRectangle

PDRectangle
public class PDRectangle implements COSObjectable(Code)
This represents a rectangle in a PDF document.
author:
   Ben Litchfield
version:
   $Revision: 1.12 $



Constructor Summary
public  PDRectangle()
     Constructor.
public  PDRectangle(float width, float height)
     Constructor.
public  PDRectangle(BoundingBox box)
     Constructor.
public  PDRectangle(COSArray array)
     Constructor.

Method Summary
public  booleancontains(float x, float y)
     Method to determine if the x/y point is inside this rectangle.
Parameters:
  x - The x-coordinate to test.
Parameters:
  y - The y-coordinate to test.
public  DimensioncreateDimension()
     A convenience method to create a dimension object for AWT operations.
public  PDRectanglecreateRetranslatedRectangle()
     This will create a translated rectangle based off of this rectangle, such that the new rectangle retains the same dimensions(height/width), but the lower left x,y values are zero.
public  COSArraygetCOSArray()
     This will get the underlying array for this rectangle.
public  COSBasegetCOSObject()
     Convert this standard java object to a COS object.
public  floatgetHeight()
     This will get the height of this rectangle as calculated by upperRightY - lowerLeftY.
public  floatgetLowerLeftX()
     This will get the lower left x coordinate.
public  floatgetLowerLeftY()
     This will get the lower left y coordinate.
public  floatgetUpperRightX()
     This will get the upper right x coordinate.
public  floatgetUpperRightY()
     This will get the upper right y coordinate.
public  floatgetWidth()
     This will get the width of this rectangle as calculated by upperRightX - lowerLeftX.
public  voidmove(float horizontalAmount, float verticalAmount)
     This will move the rectangle the given relative amount.
public  voidsetLowerLeftX(float value)
     This will set the lower left x coordinate.
public  voidsetLowerLeftY(float value)
     This will set the lower left y coordinate.
public  voidsetUpperRightX(float value)
     This will set the upper right x coordinate.
public  voidsetUpperRightY(float value)
     This will set the upper right y coordinate.
public  StringtoString()
     This will return a string representation of this rectangle.


Constructor Detail
PDRectangle
public PDRectangle()(Code)
Constructor. Initializes to 0,0,0,0



PDRectangle
public PDRectangle(float width, float height)(Code)
Constructor.
Parameters:
  width - The width of the rectangle.
Parameters:
  height - The height of the rectangle.



PDRectangle
public PDRectangle(BoundingBox box)(Code)
Constructor.
Parameters:
  box - The non PD bouding box.



PDRectangle
public PDRectangle(COSArray array)(Code)
Constructor.
Parameters:
  array - An array of numbers as specified in the PDF Reference for a rectangle type.




Method Detail
contains
public boolean contains(float x, float y)(Code)
Method to determine if the x/y point is inside this rectangle.
Parameters:
  x - The x-coordinate to test.
Parameters:
  y - The y-coordinate to test. True if the point is inside this rectangle.



createDimension
public Dimension createDimension()(Code)
A convenience method to create a dimension object for AWT operations. A dimension that matches the width and height of this rectangle.



createRetranslatedRectangle
public PDRectangle createRetranslatedRectangle()(Code)
This will create a translated rectangle based off of this rectangle, such that the new rectangle retains the same dimensions(height/width), but the lower left x,y values are zero.
100, 100, 400, 400 (llx, lly, urx, ury )
will be translated to 0,0,300,300 A new rectangle that has been translated back to the origin.



getCOSArray
public COSArray getCOSArray()(Code)
This will get the underlying array for this rectangle. The cos array.



getCOSObject
public COSBase getCOSObject()(Code)
Convert this standard java object to a COS object. The cos object that matches this Java object.



getHeight
public float getHeight()(Code)
This will get the height of this rectangle as calculated by upperRightY - lowerLeftY. The height of this rectangle.



getLowerLeftX
public float getLowerLeftX()(Code)
This will get the lower left x coordinate. The lower left x.



getLowerLeftY
public float getLowerLeftY()(Code)
This will get the lower left y coordinate. The lower left y.



getUpperRightX
public float getUpperRightX()(Code)
This will get the upper right x coordinate. The upper right x .



getUpperRightY
public float getUpperRightY()(Code)
This will get the upper right y coordinate. The upper right y.



getWidth
public float getWidth()(Code)
This will get the width of this rectangle as calculated by upperRightX - lowerLeftX. The width of this rectangle.



move
public void move(float horizontalAmount, float verticalAmount)(Code)
This will move the rectangle the given relative amount.
Parameters:
  horizontalAmount - positive values will move rectangle to the right, negative's to the left.
Parameters:
  verticalAmount - positive values will move the rectangle up, negative's down.



setLowerLeftX
public void setLowerLeftX(float value)(Code)
This will set the lower left x coordinate.
Parameters:
  value - The lower left x.



setLowerLeftY
public void setLowerLeftY(float value)(Code)
This will set the lower left y coordinate.
Parameters:
  value - The lower left y.



setUpperRightX
public void setUpperRightX(float value)(Code)
This will set the upper right x coordinate.
Parameters:
  value - The upper right x .



setUpperRightY
public void setUpperRightY(float value)(Code)
This will set the upper right y coordinate.
Parameters:
  value - The upper right y.



toString
public String toString()(Code)
This will return a string representation of this rectangle. This object as a string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.