Java Doc for AbstractPSDocumentGraphics2D.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

All known Subclasses:   org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D,  org.apache.xmlgraphics.java2d.ps.PSDocumentGraphics2D,
AbstractPSDocumentGraphics2D
abstract public class AbstractPSDocumentGraphics2D extends PSGraphics2D (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: AbstractPSDocumentGraphics2D.java 426584 2006-07-28 16:01:47Z jeremias $
See Also:   org.apache.xmlgraphics.java2d.ps.PSGraphics2D


Field Summary
final protected static  IntegerZERO
    
protected  intheight
    
protected  ShapeinitialClip
    
protected  AffineTransforminitialTransform
    
protected  booleanpagePending
    
protected  intpagecount
    
protected  floatviewportHeight
    
protected  floatviewportWidth
    
protected  intwidth
    

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

Method Summary
protected  voidclosePage()
    
public  voidfinish()
     The rendering process has finished.
public  intgetPageCount()
    
public  voidnextPage()
    
public  voidpreparePainting()
    
public  voidsetBackgroundColor(Color col)
     Set the background of the PostScript document.
public  voidsetViewportDimension(float w, float h)
     Set the dimensions of the document that will be drawn.
public  voidsetupDocument(OutputStream stream, int width, int height)
     Setup the document.
protected  voidstartPage()
    
abstract protected  voidwriteFileHeader()
    
abstract protected  voidwritePageHeader()
     Writes the page header for a page.
abstract protected  voidwritePageTrailer()
     Writes the page trailer for a page.

Field Detail
ZERO
final protected static Integer ZERO(Code)



height
protected int height(Code)



initialClip
protected Shape initialClip(Code)



initialTransform
protected AffineTransform initialTransform(Code)



pagePending
protected boolean pagePending(Code)



pagecount
protected int pagecount(Code)



viewportHeight
protected float viewportHeight(Code)



viewportWidth
protected float viewportWidth(Code)



width
protected int width(Code)




Constructor Detail
AbstractPSDocumentGraphics2D
AbstractPSDocumentGraphics2D(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.



AbstractPSDocumentGraphics2D
public AbstractPSDocumentGraphics2D(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



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




Method Detail
closePage
protected void closePage() throws IOException(Code)



finish
public void finish() throws IOException(Code)
The rendering process has finished. This should be called after the rendering has completed as there is no other indication it is complete. This will then write the results to the output stream.
throws:
  IOException - an io exception if there is a problemwriting to the output stream



getPageCount
public int getPageCount()(Code)



nextPage
public void nextPage() throws IOException(Code)



preparePainting
public void preparePainting()(Code)



setBackgroundColor
public void setBackgroundColor(Color col)(Code)
Set the background of the PostScript document. This is used to set the background for the PostScript document Rather than leaving it as the default white.
Parameters:
  col - the background colour to fill



setViewportDimension
public void setViewportDimension(float w, float h) throws IOException(Code)
Set the dimensions of the document that will be drawn. This is useful if the dimensions of the document are different from the PostScript document that is to be created. The result is scaled so that the document fits correctly inside the PostScript document.
Parameters:
  w - the width of the page
Parameters:
  h - the height of the page
throws:
  IOException - in case of an I/O problem



setupDocument
public void setupDocument(OutputStream stream, int width, int height) throws IOException(Code)
Setup the document.
Parameters:
  stream - the output stream to write the document
Parameters:
  width - the width of the page
Parameters:
  height - the height of the page
throws:
  IOException - an io exception if there is a problemwriting to the output stream



startPage
protected void startPage() throws IOException(Code)



writeFileHeader
abstract protected void writeFileHeader() throws IOException(Code)



writePageHeader
abstract protected void writePageHeader() throws IOException(Code)
Writes the page header for a page.
throws:
  IOException - In case an I/O error occurs



writePageTrailer
abstract protected void writePageTrailer() throws IOException(Code)
Writes the page trailer for a page.
throws:
  IOException - In case an I/O error occurs



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.