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


com.lowagie.text.rtf.RtfAddableElement
   com.lowagie.text.rtf.graphic.RtfShape

RtfShape
public class RtfShape extends RtfAddableElement (Code)
The RtfShape provides the interface for adding shapes to the RTF document. This will only work for Word 97+, older Word versions are not supported by this class.

Only very simple shapes are directly supported by the RtfShape. For more complex shapes you will have to read the RTF specification (iText follows the 1.6 specification) and add the desired properties via the RtfShapeProperty.

One thing to keep in mind is that distances are not expressed in the standard iText point, but in EMU where 1 inch = 914400 EMU or 1 cm = 360000 EMU.
version:
   $Id: RtfShape.java 2844 2007-06-19 11:41:07Z psoares33 $
author:
   Mark Hall (mhall@edu.uni-klu.ac.at)
author:
   Thomas Bickel (tmb99@inode.at)


Field Summary
final public static  intSHAPE_ARC
     Constant for an arc shape.
final public static  intSHAPE_ARROR_THICK
     Constant for a thick arrow.
final public static  intSHAPE_ARROW
     Constant for an arrow.
final public static  intSHAPE_BALLOON
     Constant for a balloon shape.
final public static  intSHAPE_CAN
     Constant for a can shape.
final public static  intSHAPE_CUBE
     Constant for a cube shape.
final public static  intSHAPE_DIAMOND
     Constant for a diamond.
final public static  intSHAPE_DONUT
     Constant for a donut shape.
final public static  intSHAPE_ELLIPSE
     Constant for an ellipse.
final public static  intSHAPE_FREEFORM
     Constant for a free form shape.
final public static  intSHAPE_HEXAGON
     Constant for a hexagon.
final public static  intSHAPE_HOME_PLATE
     Constant for a home plate style shape.
final public static  intSHAPE_LINE
     Constant for a line shape.
final public static  intSHAPE_OCTAGON
     Constant for an ocatagon.
final public static  intSHAPE_PARALLELOGRAM
     Constant for a parallelogram.
final public static  intSHAPE_PICTURE_FRAME
     Constant for a Picture Frame.
final public static  intSHAPE_RECTANGLE
     Constant for a rectangle.
final public static  intSHAPE_ROUND_RECTANGLE
     Constant for a rounded rectangle.
final public static  intSHAPE_SEAL
     Constant for a seal shape.
final public static  intSHAPE_STAR
     Constant for a star.
final public static  intSHAPE_TRAPEZOID
     Constant for a trapezoid.
final public static  intSHAPE_TRIANGLE_ISOSCELES
     Constant for a isoscelle triangle.
final public static  intSHAPE_TRIANGLE_RIGHT
     Constant for a right triangle.
final public static  intSHAPE_WRAP_BOTH
     Text is wrapped on the left and right side.
final public static  intSHAPE_WRAP_LARGEST
     Text is wrapped on the largest side.
final public static  intSHAPE_WRAP_LEFT
     Text is wrapped on the left side.
final public static  intSHAPE_WRAP_NONE
     Text is not wrapped around the shape.
final public static  intSHAPE_WRAP_RIGHT
     Text is wrapped on the right side.
final public static  intSHAPE_WRAP_THROUGH
     Text is wrapped through the shape.
final public static  intSHAPE_WRAP_TIGHT_BOTH
     Text is tightly wrapped on the left and right side.
final public static  intSHAPE_WRAP_TIGHT_LARGEST
     Text is tightly wrapped on the largest side.
final public static  intSHAPE_WRAP_TIGHT_LEFT
     Text is tightly wrapped on the left side.
final public static  intSHAPE_WRAP_TIGHT_RIGHT
     Text is tightly wrapped on the right side.
final public static  intSHAPE_WRAP_TOP_BOTTOM
     Text is wrapped to the top and bottom.

Constructor Summary
public  RtfShape(int type, RtfShapePosition position)
     Constructs a new RtfShape of a given shape at the given RtfShapePosition.

Method Summary
public  voidsetProperty(RtfShapeProperty property)
     Sets a property.
public  voidsetShapeText(String shapeText)
     Sets the text to display in this RtfShape.
public  voidsetWrapping(int wrapping)
     Set the wrapping mode.
public  byte[]write()
     Writes the RtfShape.
public  voidwriteContent(OutputStream result)
     Writes the RtfShape.

Field Detail
SHAPE_ARC
final public static int SHAPE_ARC(Code)
Constant for an arc shape.



SHAPE_ARROR_THICK
final public static int SHAPE_ARROR_THICK(Code)
Constant for a thick arrow.



SHAPE_ARROW
final public static int SHAPE_ARROW(Code)
Constant for an arrow.



SHAPE_BALLOON
final public static int SHAPE_BALLOON(Code)
Constant for a balloon shape.



SHAPE_CAN
final public static int SHAPE_CAN(Code)
Constant for a can shape.



SHAPE_CUBE
final public static int SHAPE_CUBE(Code)
Constant for a cube shape.



SHAPE_DIAMOND
final public static int SHAPE_DIAMOND(Code)
Constant for a diamond.



SHAPE_DONUT
final public static int SHAPE_DONUT(Code)
Constant for a donut shape.



SHAPE_ELLIPSE
final public static int SHAPE_ELLIPSE(Code)
Constant for an ellipse. Use this to create circles.



SHAPE_FREEFORM
final public static int SHAPE_FREEFORM(Code)
Constant for a free form shape. The shape verticies must be specified with an array of Point objects in a RtfShapeProperty with the name PROPERTY_VERTICIES.



SHAPE_HEXAGON
final public static int SHAPE_HEXAGON(Code)
Constant for a hexagon.



SHAPE_HOME_PLATE
final public static int SHAPE_HOME_PLATE(Code)
Constant for a home plate style shape.



SHAPE_LINE
final public static int SHAPE_LINE(Code)
Constant for a line shape.



SHAPE_OCTAGON
final public static int SHAPE_OCTAGON(Code)
Constant for an ocatagon.



SHAPE_PARALLELOGRAM
final public static int SHAPE_PARALLELOGRAM(Code)
Constant for a parallelogram.



SHAPE_PICTURE_FRAME
final public static int SHAPE_PICTURE_FRAME(Code)
Constant for a Picture Frame.



SHAPE_RECTANGLE
final public static int SHAPE_RECTANGLE(Code)
Constant for a rectangle.



SHAPE_ROUND_RECTANGLE
final public static int SHAPE_ROUND_RECTANGLE(Code)
Constant for a rounded rectangle. The roundness is set via a RtfShapeProperty with the name PROPERTY_ADJUST_VALUE.



SHAPE_SEAL
final public static int SHAPE_SEAL(Code)
Constant for a seal shape.



SHAPE_STAR
final public static int SHAPE_STAR(Code)
Constant for a star.



SHAPE_TRAPEZOID
final public static int SHAPE_TRAPEZOID(Code)
Constant for a trapezoid.



SHAPE_TRIANGLE_ISOSCELES
final public static int SHAPE_TRIANGLE_ISOSCELES(Code)
Constant for a isoscelle triangle.



SHAPE_TRIANGLE_RIGHT
final public static int SHAPE_TRIANGLE_RIGHT(Code)
Constant for a right triangle.



SHAPE_WRAP_BOTH
final public static int SHAPE_WRAP_BOTH(Code)
Text is wrapped on the left and right side.



SHAPE_WRAP_LARGEST
final public static int SHAPE_WRAP_LARGEST(Code)
Text is wrapped on the largest side.



SHAPE_WRAP_LEFT
final public static int SHAPE_WRAP_LEFT(Code)
Text is wrapped on the left side.



SHAPE_WRAP_NONE
final public static int SHAPE_WRAP_NONE(Code)
Text is not wrapped around the shape.



SHAPE_WRAP_RIGHT
final public static int SHAPE_WRAP_RIGHT(Code)
Text is wrapped on the right side.



SHAPE_WRAP_THROUGH
final public static int SHAPE_WRAP_THROUGH(Code)
Text is wrapped through the shape.



SHAPE_WRAP_TIGHT_BOTH
final public static int SHAPE_WRAP_TIGHT_BOTH(Code)
Text is tightly wrapped on the left and right side.



SHAPE_WRAP_TIGHT_LARGEST
final public static int SHAPE_WRAP_TIGHT_LARGEST(Code)
Text is tightly wrapped on the largest side.



SHAPE_WRAP_TIGHT_LEFT
final public static int SHAPE_WRAP_TIGHT_LEFT(Code)
Text is tightly wrapped on the left side.



SHAPE_WRAP_TIGHT_RIGHT
final public static int SHAPE_WRAP_TIGHT_RIGHT(Code)
Text is tightly wrapped on the right side.



SHAPE_WRAP_TOP_BOTTOM
final public static int SHAPE_WRAP_TOP_BOTTOM(Code)
Text is wrapped to the top and bottom.




Constructor Detail
RtfShape
public RtfShape(int type, RtfShapePosition position)(Code)
Constructs a new RtfShape of a given shape at the given RtfShapePosition.
Parameters:
  type - The type of shape to create.
Parameters:
  position - The RtfShapePosition to create this RtfShape at.




Method Detail
setProperty
public void setProperty(RtfShapeProperty property)(Code)
Sets a property.
Parameters:
  property - The property to set for this RtfShape.



setShapeText
public void setShapeText(String shapeText)(Code)
Sets the text to display in this RtfShape.
Parameters:
  shapeText - The text to display.



setWrapping
public void setWrapping(int wrapping)(Code)
Set the wrapping mode.
Parameters:
  wrapping - The wrapping mode to use for this RtfShape.



write
public byte[] write()(Code)
Writes the RtfShape. Some settings are automatically translated into or require other properties and these are set first. RtfShape.writeContent(OutputStream)



writeContent
public void writeContent(OutputStream result) throws IOException(Code)
Writes the RtfShape. Some settings are automatically translated into or require other properties and these are set first.



Fields inherited from com.lowagie.text.rtf.RtfAddableElement
protected RtfDocument doc(Code)(Java Doc)
protected boolean inHeader(Code)(Java Doc)
protected boolean inTable(Code)(Java Doc)

Methods inherited from com.lowagie.text.rtf.RtfAddableElement
public byte[] intToByteArray(int i)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public void setInHeader(boolean inHeader)(Code)(Java Doc)
public void setInTable(boolean inTable)(Code)(Java Doc)
public void setRtfDocument(RtfDocument doc)(Code)(Java Doc)
abstract public byte[] write()(Code)(Java Doc)
public void writeContent(OutputStream out) throws IOException(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.