Java Doc for PSDocumentGraphics2D.java in  » Graphic-Library » xmlgraphics-commons-1.2 » org » apache » xmlgraphics » java2d » ps » 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 » Graphic Library » xmlgraphics commons 1.2 » org.apache.xmlgraphics.java2d.ps 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.xmlgraphics.java2d.ps.PSGraphics2D
   org.apache.xmlgraphics.java2d.ps.AbstractPSDocumentGraphics2D
      org.apache.xmlgraphics.java2d.ps.PSDocumentGraphics2D

PSDocumentGraphics2D
public class PSDocumentGraphics2D extends AbstractPSDocumentGraphics2D (Code)
This class is a wrapper for the PSGraphics2D that is used to create a full document around the PostScript rendering from PSGraphics2D.
author:
   Keiron Liddle
version:
   $Id: PSDocumentGraphics2D.java 512838 2007-02-28 16:42:28Z jeremias $
See Also:   org.apache.xmlgraphics.java2d.ps.PSGraphics2D



Constructor Summary
public  PSDocumentGraphics2D(boolean textAsShapes)
     Create a new AbstractPSDocumentGraphics2D.
public  PSDocumentGraphics2D(boolean textAsShapes, OutputStream stream, int width, int height)
     Create a new AbstractPSDocumentGraphics2D.
public  PSDocumentGraphics2D(PSDocumentGraphics2D g)
    

Method Summary
public  Graphicscreate()
     Creates a new Graphics object that is a copy of this Graphics object.
public  voidnextPage()
    
protected  voidwriteFileHeader()
    
protected  voidwritePageHeader()
    
protected  voidwritePageTrailer()
    


Constructor Detail
PSDocumentGraphics2D
public PSDocumentGraphics2D(boolean textAsShapes)(Code)
Create a new AbstractPSDocumentGraphics2D. This is used to create a new PostScript document, the height, width and output stream can be setup later. For use by the transcoder which needs font information for the bridge before the document size is known. The resulting document is written to the stream after rendering.
Parameters:
  textAsShapes - set this to true so that text will be renderedusing curves and not the font.



PSDocumentGraphics2D
public PSDocumentGraphics2D(boolean textAsShapes, OutputStream stream, int width, int height) throws IOException(Code)
Create a new AbstractPSDocumentGraphics2D. This is used to create a new PostScript document of the given height and width. The resulting document is written to the stream after rendering.
Parameters:
  textAsShapes - set this to true so that text will be renderedusing curves and not the font.
Parameters:
  stream - the stream that the final document should be written to.
Parameters:
  width - the width of the document
Parameters:
  height - the height of the document
throws:
  IOException - an io exception if there is a problemwriting to the output stream



PSDocumentGraphics2D
public PSDocumentGraphics2D(PSDocumentGraphics2D g)(Code)
This constructor supports the create method
Parameters:
  g - the PostScript document graphics to make a copy of




Method Detail
create
public Graphics create()(Code)
Creates a new Graphics object that is a copy of this Graphics object. a new graphics context that is a copy ofthis graphics context.



nextPage
public void nextPage() throws IOException(Code)



writeFileHeader
protected void writeFileHeader() throws IOException(Code)



writePageHeader
protected void writePageHeader() throws IOException(Code)



writePageTrailer
protected void writePageTrailer() throws IOException(Code)



Fields inherited from org.apache.xmlgraphics.java2d.ps.AbstractPSDocumentGraphics2D
final protected static Integer ZERO(Code)(Java Doc)
protected int height(Code)(Java Doc)
protected Shape initialClip(Code)(Java Doc)
protected AffineTransform initialTransform(Code)(Java Doc)
protected boolean pagePending(Code)(Java Doc)
protected int pagecount(Code)(Java Doc)
protected float viewportHeight(Code)(Java Doc)
protected float viewportWidth(Code)(Java Doc)
protected int width(Code)(Java Doc)

Methods inherited from org.apache.xmlgraphics.java2d.ps.AbstractPSDocumentGraphics2D
protected void closePage() throws IOException(Code)(Java Doc)
public void finish() throws IOException(Code)(Java Doc)
public int getPageCount()(Code)(Java Doc)
public void nextPage() throws IOException(Code)(Java Doc)
public void preparePainting()(Code)(Java Doc)
public void setBackgroundColor(Color col)(Code)(Java Doc)
public void setViewportDimension(float w, float h) throws IOException(Code)(Java Doc)
public void setupDocument(OutputStream stream, int width, int height) throws IOException(Code)(Java Doc)
protected void startPage() throws IOException(Code)(Java Doc)
abstract protected void writeFileHeader() throws IOException(Code)(Java Doc)
abstract protected void writePageHeader() throws IOException(Code)(Java Doc)
abstract protected void writePageTrailer() throws IOException(Code)(Java Doc)

Fields inherited from org.apache.xmlgraphics.java2d.ps.PSGraphics2D
protected Color currentColour(Code)(Java Doc)
protected TextHandler customTextHandler(Code)(Java Doc)
protected TextHandler fallbackTextHandler(Code)(Java Doc)
protected PSGenerator gen(Code)(Java Doc)

Methods inherited from org.apache.xmlgraphics.java2d.ps.PSGraphics2D
protected void applyPaint(Paint paint, boolean fill)(Code)(Java Doc)
protected void applyStroke(Stroke stroke)(Code)(Java Doc)
public BufferedImage buildBufferedImage(Dimension size)(Code)(Java Doc)
public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)(Java Doc)
public Graphics create()(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void doDrawing(boolean fill, boolean stroke, boolean nonzero) throws IOException(Code)(Java Doc)
public void draw(Shape s)(Code)(Java Doc)
public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)(Java Doc)
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)(Java Doc)
public void drawRenderableImage(RenderableImage img, AffineTransform xform)(Code)(Java Doc)
public void drawRenderedImage(RenderedImage img, AffineTransform xform)(Code)(Java Doc)
public void drawString(String s, float x, float y)(Code)(Java Doc)
public void establishColor(Color c) throws IOException(Code)(Java Doc)
public void fill(Shape s)(Code)(Java Doc)
public TextHandler getCustomTextHandler()(Code)(Java Doc)
public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc)
public TextHandler getFallbackTextHandler()(Code)(Java Doc)
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)(Code)(Java Doc)
public PSGenerator getPSGenerator()(Code)(Java Doc)
public void handleIOException(IOException ioe)(Code)(Java Doc)
public void preparePainting()(Code)(Java Doc)
public void processPathIterator(PathIterator iter) throws IOException(Code)(Java Doc)
public void setCustomTextHandler(TextHandler handler)(Code)(Java Doc)
public void setGraphicContext(GraphicContext c)(Code)(Java Doc)
public void setPSGenerator(PSGenerator gen)(Code)(Java Doc)
public void setXORMode(Color c1)(Code)(Java Doc)
public void writeClip(Shape s)(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.