Java Doc for Rectangle.java in  » PDF » pdf-itext » com » lowagie » text » 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 » pdf itext » com.lowagie.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.Rectangle

All known Subclasses:   com.lowagie.text.pdf.PdfTable,  com.lowagie.text.HeaderFooter,  com.lowagie.text.Table,  com.lowagie.text.Cell,  com.lowagie.text.SimpleCell,  com.lowagie.text.pdf.PdfPCell,  com.lowagie.text.pdf.PdfCell,  com.lowagie.text.Image,  com.lowagie.text.SimpleTable,
Rectangle
public class Rectangle implements Element(Code)
A Rectangle is the representation of a geometric figure. Rectangles support constant width borders using Rectangle.setBorderWidth(float) and Rectangle.setBorder(int) . They also support borders that vary in width/color on each side using methods like Rectangle.setBorderWidthLeft(float) or Rectangle.setBorderColorLeft(java.awt.Color) .
See Also:   Element
See Also:   Table
See Also:   Cell
See Also:   HeaderFooter


Field Summary
final public static  intBOTTOM
     This represents one side of the border of the Rectangle.
final public static  intBOX
     This represents a type of border.
final public static  intLEFT
     This represents one side of the border of the Rectangle.
final public static  intNO_BORDER
     This represents a rectangle without borders.
final public static  intRIGHT
     This represents one side of the border of the Rectangle.
final public static  intTOP
     This represents one side of the border of the Rectangle.
final public static  intUNDEFINED
     This is the value that will be used as undefined .
protected  ColorbackgroundColor
     This is the color of the background of this rectangle.
protected  intborder
     This represents the status of the 4 sides of the rectangle.
protected  ColorborderColor
     The color of the border of this rectangle.
protected  ColorborderColorBottom
     The color of the bottom border of this rectangle.
protected  ColorborderColorLeft
     The color of the left border of this rectangle.
protected  ColorborderColorRight
     The color of the right border of this rectangle.
protected  ColorborderColorTop
     The color of the top border of this rectangle.
protected  floatborderWidth
     This is the width of the border around this rectangle.
protected  floatborderWidthBottom
     The width of the bottom border of this rectangle.
protected  floatborderWidthLeft
     The width of the left border of this rectangle.
protected  floatborderWidthRight
     The width of the right border of this rectangle.
protected  floatborderWidthTop
     The width of the top border of this rectangle.
protected  floatllx
     the lower left x-coordinate.
protected  floatlly
     the lower left y-coordinate.
protected  introtation
    
protected  floaturx
     the upper right x-coordinate.
protected  floatury
     the upper right y-coordinate.
protected  booleanuseVariableBorders
     Whether variable width/color borders are used.

Constructor Summary
public  Rectangle(float llx, float lly, float urx, float ury)
     Constructs a Rectangle -object.
public  Rectangle(float urx, float ury)
     Constructs a Rectangle -object starting from the origin (0, 0).
public  Rectangle(Rectangle rect)
     Constructs a Rectangle -object.

Method Summary
public  ColorbackgroundColor()
     Gets the backgroundcolor.
public  intborder()
     Returns the exact type of the border.
public  ColorborderColor()
     Gets the color of the border.
public  floatborderWidth()
     Gets the borderwidth.
public  floatbottom()
     Returns the lower left y-coordinate.
public  floatbottom(float margin)
     Returns the lower left y-coordinate, considering a given margin.
public  voidcloneNonPositionParameters(Rectangle rect)
     Copies all of the parameters from a Rectangle object except the position.
public  voiddisableBorderSide(int side)
     Disables the border on the specified side.
Parameters:
  side - the side to disable.
public  voidenableBorderSide(int side)
     Enables the border on the specified side.
Parameters:
  side - the side to enable.
public  ColorgetBackgroundColor()
     Gets the backgroundcolor.
public  intgetBorder()
     Returns the exact type of the border.
public  ColorgetBorderColor()
     Gets the color of the border.
public  ColorgetBorderColorBottom()
     Gets the color of a border.
public  ColorgetBorderColorLeft()
     Gets the color of a border.
public  ColorgetBorderColorRight()
     Gets the color of a border.
public  ColorgetBorderColorTop()
     Gets the color of a border.
public  floatgetBorderWidth()
     Gets the borderwidth.
public  floatgetBorderWidthBottom()
     Gets the width of a border.
public  floatgetBorderWidthLeft()
     Gets the width of a border.
public  floatgetBorderWidthRight()
     Gets the width of a border.
public  floatgetBorderWidthTop()
     Gets the width of a border.
public  floatgetBottom()
     Returns the lower left y-coordinate.
public  floatgetBottom(float margin)
     Returns the lower left y-coordinate, considering a given margin.
public  ArrayListgetChunks()
     Gets all the chunks in this element.
public  floatgetGrayFill()
     Gets the grayscale.
public  floatgetHeight()
     Returns the height of the rectangle.
public  floatgetLeft()
     Returns the lower left x-coordinate.
public  floatgetLeft(float margin)
     Returns the lower left x-coordinate, considering a given margin.
public  floatgetRight()
     Returns the upper right x-coordinate.
public  floatgetRight(float margin)
     Returns the upper right x-coordinate, considering a given margin.
public  intgetRotation()
    
public  floatgetTop()
     Returns the upper right y-coordinate.
public  floatgetTop(float margin)
     Returns the upper right y-coordinate, considering a given margin.
public  floatgetWidth()
     Returns the width of the rectangle.
public  floatgrayFill()
     Gets the grayscale.
public  booleanhasBorder(int type)
     Indicates if the table has a some type of border.
public  booleanhasBorders()
     Indicates if the table has borders.
public  floatheight()
     Returns the height of the rectangle.
public  booleanisUseVariableBorders()
     Indicates whether variable width borders are being used.
public  floatleft()
     Returns the lower left x-coordinate.
public  floatleft(float margin)
     Returns the lower left x-coordinate, considering a given margin.
public  voidnormalize()
    
public  booleanprocess(ElementListener listener)
     Processes the element by adding it (or the different parts) to an ElementListener.
public  Rectanglerectangle(float top, float bottom)
     Gets a Rectangle that is altered to fit on the page.
public  floatright()
     Returns the upper right x-coordinate.
public  floatright(float margin)
     Returns the upper right x-coordinate, considering a given margin.
public  Rectanglerotate()
     Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.
public  voidsetBackgroundColor(Color value)
     Sets the backgroundcolor of the rectangle.
public  voidsetBorder(int value)
     Enables/Disables the border on the specified sides.
public  voidsetBorderColor(Color value)
     Sets the color of the border.
public  voidsetBorderColorBottom(Color value)
    
public  voidsetBorderColorLeft(Color value)
    
public  voidsetBorderColorRight(Color value)
    
public  voidsetBorderColorTop(Color value)
    
public  voidsetBorderWidth(float value)
     Sets the borderwidth of the table.
public  voidsetBorderWidthBottom(float borderWidthBottom)
    
public  voidsetBorderWidthLeft(float borderWidthLeft)
    
public  voidsetBorderWidthRight(float borderWidthRight)
    
public  voidsetBorderWidthTop(float borderWidthTop)
    
public  voidsetBottom(float value)
     Sets the lower left y-coordinate.
public  voidsetGrayFill(float value)
     Sets the grayscale of the rectangle.
public  voidsetLeft(float value)
     Sets the lower left x-coordinate.
public  voidsetRight(float value)
     Sets the upper right x-coordinate.
public  voidsetTop(float value)
     Sets the upper right y-coordinate.
public  voidsetUseVariableBorders(boolean useVariableBorders)
    
public  voidsoftCloneNonPositionParameters(Rectangle rect)
     Copies all of the parameters from a Rectangle object except the position.
public  StringtoString()
    
public  floattop()
     Returns the upper right y-coordinate.
public  floattop(float margin)
     Returns the upper right y-coordinate, considering a given margin.
public  inttype()
     Gets the type of the text element.
public  floatwidth()
     Returns the width of the rectangle.

Field Detail
BOTTOM
final public static int BOTTOM(Code)
This represents one side of the border of the Rectangle.



BOX
final public static int BOX(Code)
This represents a type of border.



LEFT
final public static int LEFT(Code)
This represents one side of the border of the Rectangle.



NO_BORDER
final public static int NO_BORDER(Code)
This represents a rectangle without borders.



RIGHT
final public static int RIGHT(Code)
This represents one side of the border of the Rectangle.



TOP
final public static int TOP(Code)
This represents one side of the border of the Rectangle.



UNDEFINED
final public static int UNDEFINED(Code)
This is the value that will be used as undefined .



backgroundColor
protected Color backgroundColor(Code)
This is the color of the background of this rectangle.



border
protected int border(Code)
This represents the status of the 4 sides of the rectangle.



borderColor
protected Color borderColor(Code)
The color of the border of this rectangle.



borderColorBottom
protected Color borderColorBottom(Code)
The color of the bottom border of this rectangle.



borderColorLeft
protected Color borderColorLeft(Code)
The color of the left border of this rectangle.



borderColorRight
protected Color borderColorRight(Code)
The color of the right border of this rectangle.



borderColorTop
protected Color borderColorTop(Code)
The color of the top border of this rectangle.



borderWidth
protected float borderWidth(Code)
This is the width of the border around this rectangle.



borderWidthBottom
protected float borderWidthBottom(Code)
The width of the bottom border of this rectangle.



borderWidthLeft
protected float borderWidthLeft(Code)
The width of the left border of this rectangle.



borderWidthRight
protected float borderWidthRight(Code)
The width of the right border of this rectangle.



borderWidthTop
protected float borderWidthTop(Code)
The width of the top border of this rectangle.



llx
protected float llx(Code)
the lower left x-coordinate.



lly
protected float lly(Code)
the lower left y-coordinate.



rotation
protected int rotation(Code)
The rotation of the Rectangle



urx
protected float urx(Code)
the upper right x-coordinate.



ury
protected float ury(Code)
the upper right y-coordinate.



useVariableBorders
protected boolean useVariableBorders(Code)
Whether variable width/color borders are used.




Constructor Detail
Rectangle
public Rectangle(float llx, float lly, float urx, float ury)(Code)
Constructs a Rectangle -object.
Parameters:
  llx - lower left x
Parameters:
  lly - lower left y
Parameters:
  urx - upper right x
Parameters:
  ury - upper right y



Rectangle
public Rectangle(float urx, float ury)(Code)
Constructs a Rectangle -object starting from the origin (0, 0).
Parameters:
  urx - upper right x
Parameters:
  ury - upper right y



Rectangle
public Rectangle(Rectangle rect)(Code)
Constructs a Rectangle -object.
Parameters:
  rect - another Rectangle




Method Detail
backgroundColor
public Color backgroundColor()(Code)
Gets the backgroundcolor. a valueRectangle.getBackgroundColor()



border
public int border()(Code)
Returns the exact type of the border. a valueRectangle.getBorder()



borderColor
public Color borderColor()(Code)
Gets the color of the border. a valueRectangle.getBorderColor()



borderWidth
public float borderWidth()(Code)
Gets the borderwidth. a valueRectangle.getBorderWidth()



bottom
public float bottom()(Code)
Returns the lower left y-coordinate. the lower left y-coordinateRectangle.getBottom()



bottom
public float bottom(float margin)(Code)
Returns the lower left y-coordinate, considering a given margin.
Parameters:
  margin - a margin the lower left y-coordinateRectangle.getBottom(float)



cloneNonPositionParameters
public void cloneNonPositionParameters(Rectangle rect)(Code)
Copies all of the parameters from a Rectangle object except the position.
Parameters:
  rect - Rectangle to copy from



disableBorderSide
public void disableBorderSide(int side)(Code)
Disables the border on the specified side.
Parameters:
  side - the side to disable. One of LEFT, RIGHT, TOP, BOTTOM



enableBorderSide
public void enableBorderSide(int side)(Code)
Enables the border on the specified side.
Parameters:
  side - the side to enable. One of LEFT, RIGHT, TOP, BOTTOM



getBackgroundColor
public Color getBackgroundColor()(Code)
Gets the backgroundcolor. a value



getBorder
public int getBorder()(Code)
Returns the exact type of the border. a value



getBorderColor
public Color getBorderColor()(Code)
Gets the color of the border. a value



getBorderColorBottom
public Color getBorderColorBottom()(Code)
Gets the color of a border. a color value



getBorderColorLeft
public Color getBorderColorLeft()(Code)
Gets the color of a border. a color value



getBorderColorRight
public Color getBorderColorRight()(Code)
Gets the color of a border. a color value



getBorderColorTop
public Color getBorderColorTop()(Code)
Gets the color of a border. a color value



getBorderWidth
public float getBorderWidth()(Code)
Gets the borderwidth. a value



getBorderWidthBottom
public float getBorderWidthBottom()(Code)
Gets the width of a border. a width



getBorderWidthLeft
public float getBorderWidthLeft()(Code)
Gets the width of a border. a width



getBorderWidthRight
public float getBorderWidthRight()(Code)
Gets the width of a border. a width



getBorderWidthTop
public float getBorderWidthTop()(Code)
Gets the width of a border. a width



getBottom
public float getBottom()(Code)
Returns the lower left y-coordinate. the lower left y-coordinate



getBottom
public float getBottom(float margin)(Code)
Returns the lower left y-coordinate, considering a given margin.
Parameters:
  margin - a margin the lower left y-coordinate



getChunks
public ArrayList getChunks()(Code)
Gets all the chunks in this element. an ArrayList



getGrayFill
public float getGrayFill()(Code)
Gets the grayscale. a value



getHeight
public float getHeight()(Code)
Returns the height of the rectangle. a height



getLeft
public float getLeft()(Code)
Returns the lower left x-coordinate. the lower left x-coordinate



getLeft
public float getLeft(float margin)(Code)
Returns the lower left x-coordinate, considering a given margin.
Parameters:
  margin - a margin the lower left x-coordinate



getRight
public float getRight()(Code)
Returns the upper right x-coordinate. the upper right x-coordinate



getRight
public float getRight(float margin)(Code)
Returns the upper right x-coordinate, considering a given margin.
Parameters:
  margin - a margin the upper right x-coordinate



getRotation
public int getRotation()(Code)
Gets the rotation of the rectangle a rotation value



getTop
public float getTop()(Code)
Returns the upper right y-coordinate. the upper right y-coordinate



getTop
public float getTop(float margin)(Code)
Returns the upper right y-coordinate, considering a given margin.
Parameters:
  margin - a margin the upper right y-coordinate



getWidth
public float getWidth()(Code)
Returns the width of the rectangle. a width



grayFill
public float grayFill()(Code)
Gets the grayscale. a valueRectangle.getGrayFill()



hasBorder
public boolean hasBorder(int type)(Code)
Indicates if the table has a some type of border.
Parameters:
  type - the type of border a boolean



hasBorders
public boolean hasBorders()(Code)
Indicates if the table has borders. a boolean



height
public float height()(Code)
Returns the height of the rectangle. a heightRectangle.getHeight()



isUseVariableBorders
public boolean isUseVariableBorders()(Code)
Indicates whether variable width borders are being used. Returns true if setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, or setBorderWidthBottom has been called. true if variable width borders are in use



left
public float left()(Code)
Returns the lower left x-coordinate. the lower left x-coordinateRectangle.getLeft()



left
public float left(float margin)(Code)
Returns the lower left x-coordinate, considering a given margin.
Parameters:
  margin - a margin the lower left x-coordinateRectangle.getLeft(float)



normalize
public void normalize()(Code)
Switches lowerleft with upperright



process
public boolean process(ElementListener listener)(Code)
Processes the element by adding it (or the different parts) to an ElementListener.
Parameters:
  listener - an ElementListener true if the element was processed successfully



rectangle
public Rectangle rectangle(float top, float bottom)(Code)
Gets a Rectangle that is altered to fit on the page.
Parameters:
  top - the top position
Parameters:
  bottom - the bottom position a Rectangle



right
public float right()(Code)
Returns the upper right x-coordinate. the upper right x-coordinateRectangle.getRight()



right
public float right(float margin)(Code)
Returns the upper right x-coordinate, considering a given margin.
Parameters:
  margin - a margin the upper right x-coordinateRectangle.getRight(float)



rotate
public Rectangle rotate()(Code)
Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle. a Rectangle



setBackgroundColor
public void setBackgroundColor(Color value)(Code)
Sets the backgroundcolor of the rectangle.
Parameters:
  value - the new value



setBorder
public void setBorder(int value)(Code)
Enables/Disables the border on the specified sides. The border is specified as an integer bitwise combination of the constants: LEFT, RIGHT, TOP, BOTTOM.
See Also:   Rectangle.enableBorderSide(int)
See Also:   Rectangle.disableBorderSide(int)
Parameters:
  value - the new value



setBorderColor
public void setBorderColor(Color value)(Code)
Sets the color of the border.
Parameters:
  value - the new value



setBorderColorBottom
public void setBorderColorBottom(Color value)(Code)
Sets the value of the border color
Parameters:
  value - a color value



setBorderColorLeft
public void setBorderColorLeft(Color value)(Code)
Sets the value of the border color
Parameters:
  value - a color value



setBorderColorRight
public void setBorderColorRight(Color value)(Code)
Sets the value of the border color
Parameters:
  value - a color value



setBorderColorTop
public void setBorderColorTop(Color value)(Code)
Sets the value of the border color
Parameters:
  value - a color value



setBorderWidth
public void setBorderWidth(float value)(Code)
Sets the borderwidth of the table.
Parameters:
  value - the new value



setBorderWidthBottom
public void setBorderWidthBottom(float borderWidthBottom)(Code)
Sets the width of a border
Parameters:
  borderWidthBottom - a width



setBorderWidthLeft
public void setBorderWidthLeft(float borderWidthLeft)(Code)
Sets the width of a border
Parameters:
  borderWidthLeft - a width



setBorderWidthRight
public void setBorderWidthRight(float borderWidthRight)(Code)
Sets the width of a border
Parameters:
  borderWidthRight - a width



setBorderWidthTop
public void setBorderWidthTop(float borderWidthTop)(Code)
Sets the width of a border
Parameters:
  borderWidthTop - a width



setBottom
public void setBottom(float value)(Code)
Sets the lower left y-coordinate.
Parameters:
  value - the new value



setGrayFill
public void setGrayFill(float value)(Code)
Sets the grayscale of the rectangle.
Parameters:
  value - the new value



setLeft
public void setLeft(float value)(Code)
Sets the lower left x-coordinate.
Parameters:
  value - the new value



setRight
public void setRight(float value)(Code)
Sets the upper right x-coordinate.
Parameters:
  value - the new value



setTop
public void setTop(float value)(Code)
Sets the upper right y-coordinate.
Parameters:
  value - the new value



setUseVariableBorders
public void setUseVariableBorders(boolean useVariableBorders)(Code)
Sets a parameter indicating if the rectangle has variable borders
Parameters:
  useVariableBorders - indication if the rectangle has variable borders



softCloneNonPositionParameters
public void softCloneNonPositionParameters(Rectangle rect)(Code)
Copies all of the parameters from a Rectangle object except the position.
Parameters:
  rect - Rectangle to copy from



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



top
public float top()(Code)
Returns the upper right y-coordinate. the upper right y-coordinateRectangle.getTop()



top
public float top(float margin)(Code)
Returns the upper right y-coordinate, considering a given margin.
Parameters:
  margin - a margin the upper right y-coordinateRectangle.getTop(float)



type
public int type()(Code)
Gets the type of the text element. a type



width
public float width()(Code)
Returns the width of the rectangle. a widthRectangle.getWidth()



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.