PageRenderTime 71ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/contribs/fop-1.0/javadocs/org/apache/fop/render/java2d/Java2DGraphics2DAdapter.html

https://bitbucket.org/haris_peco/debrief
HTML | 292 lines | 233 code | 34 blank | 25 comment | 0 complexity | 93ac7fc2ccc1220ba43d356d2489bf54 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 12 21:37:43 CEST 2010 -->
  6. <TITLE>
  7. Java2DGraphics2DAdapter (Apache FOP 1.0 API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.apache.fop.render.java2d.Java2DGraphics2DAdapter class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="Java2DGraphics2DAdapter (Apache FOP 1.0 API)";
  15. }
  16. </SCRIPT>
  17. </HEAD>
  18. <BODY BGCOLOR="white" onload="windowTitle();">
  19. <!-- ========= START OF TOP NAVBAR ======= -->
  20. <A NAME="navbar_top"><!-- --></A>
  21. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  22. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  23. <TR>
  24. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  25. <A NAME="navbar_top_firstrow"><!-- --></A>
  26. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  27. <TR ALIGN="center" VALIGN="top">
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Java2DGraphics2DAdapter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  36. </TR>
  37. </TABLE>
  38. </TD>
  39. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  40. fop 1.0</EM>
  41. </TD>
  42. </TR>
  43. <TR>
  44. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  45. &nbsp;<A HREF="../../../../../org/apache/fop/render/java2d/Java2DFontMetrics.html" title="class in org.apache.fop.render.java2d"><B>PREV CLASS</B></A>&nbsp;
  46. &nbsp;<A HREF="../../../../../org/apache/fop/render/java2d/Java2DGraphicsState.html" title="class in org.apache.fop.render.java2d"><B>NEXT CLASS</B></A></FONT></TD>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  49. &nbsp;<A HREF="Java2DGraphics2DAdapter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  50. &nbsp;<SCRIPT type="text/javascript">
  51. <!--
  52. if(window==top) {
  53. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  54. }
  55. //-->
  56. </SCRIPT>
  57. <NOSCRIPT>
  58. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  59. </NOSCRIPT>
  60. </FONT></TD>
  61. </TR>
  62. <TR>
  63. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  64. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  65. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  66. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  67. </TR>
  68. </TABLE>
  69. <A NAME="skip-navbar_top"></A>
  70. <!-- ========= END OF TOP NAVBAR ========= -->
  71. <HR>
  72. <!-- ======== START OF CLASS DATA ======== -->
  73. <H2>
  74. <FONT SIZE="-1">
  75. org.apache.fop.render.java2d</FONT>
  76. <BR>
  77. Class Java2DGraphics2DAdapter</H2>
  78. <PRE>
  79. java.lang.Object
  80. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html" title="class in org.apache.fop.render">org.apache.fop.render.AbstractGraphics2DAdapter</A>
  81. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.fop.render.java2d.Java2DGraphics2DAdapter</B>
  82. </PRE>
  83. <DL>
  84. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/fop/render/Graphics2DAdapter.html" title="interface in org.apache.fop.render">Graphics2DAdapter</A></DD>
  85. </DL>
  86. <HR>
  87. <DL>
  88. <DT>public class <B>Java2DGraphics2DAdapter</B><DT>extends <A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html" title="class in org.apache.fop.render">AbstractGraphics2DAdapter</A></DL>
  89. <P>
  90. Graphics2DAdapter implementation for Java2D.
  91. <P>
  92. <P>
  93. <HR>
  94. <P>
  95. <!-- ======== NESTED CLASS SUMMARY ======== -->
  96. <!-- =========== FIELD SUMMARY =========== -->
  97. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  98. <A NAME="constructor_summary"><!-- --></A>
  99. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  100. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  101. <TD COLSPAN=2><FONT SIZE="+2">
  102. <B>Constructor Summary</B></FONT></TD>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD><CODE><B><A HREF="../../../../../org/apache/fop/render/java2d/Java2DGraphics2DAdapter.html#Java2DGraphics2DAdapter()">Java2DGraphics2DAdapter</A></B>()</CODE>
  106. <BR>
  107. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  108. </TR>
  109. </TABLE>
  110. &nbsp;
  111. <!-- ========== METHOD SUMMARY =========== -->
  112. <A NAME="method_summary"><!-- --></A>
  113. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  114. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  115. <TD COLSPAN=2><FONT SIZE="+2">
  116. <B>Method Summary</B></FONT></TD>
  117. </TR>
  118. <TR BGCOLOR="white" CLASS="TableRowColor">
  119. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  120. <CODE>&nbsp;void</CODE></FONT></TD>
  121. <TD><CODE><B><A HREF="../../../../../org/apache/fop/render/java2d/Java2DGraphics2DAdapter.html#paintImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter, org.apache.fop.render.RendererContext, int, int, int, int)">paintImage</A></B>(org.apache.xmlgraphics.java2d.Graphics2DImagePainter&nbsp;painter,
  122. <A HREF="../../../../../org/apache/fop/render/RendererContext.html" title="class in org.apache.fop.render">RendererContext</A>&nbsp;context,
  123. int&nbsp;x,
  124. int&nbsp;y,
  125. int&nbsp;width,
  126. int&nbsp;height)</CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints an arbitrary images on a given Graphics2D instance. The renderer
  129. providing this functionality must set up a Graphics2D instance so that
  130. the image with the given extents (in mpt) can be painted by the painter
  131. passed to this method. The Graphics2DImagePainter is then passed this
  132. Graphics2D instance so the image can be painted.</TD>
  133. </TR>
  134. </TABLE>
  135. &nbsp;<A NAME="methods_inherited_from_class_org.apache.fop.render.AbstractGraphics2DAdapter"><!-- --></A>
  136. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  137. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  138. <TD><B>Methods inherited from class org.apache.fop.render.<A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html" title="class in org.apache.fop.render">AbstractGraphics2DAdapter</A></B></TD>
  139. </TR>
  140. <TR BGCOLOR="white" CLASS="TableRowColor">
  141. <TD><CODE><A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html#mpt2px(int, int)">mpt2px</A>, <A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html#paintImage(org.apache.fop.render.Graphics2DImagePainter, org.apache.fop.render.RendererContext, int, int, int, int)">paintImage</A>, <A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html#paintToBufferedImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter, org.apache.fop.render.RendererContext.RendererContextWrapper, int, boolean, boolean)">paintToBufferedImage</A>, <A HREF="../../../../../org/apache/fop/render/AbstractGraphics2DAdapter.html#setRenderingHintsForBufferedImage(java.awt.Graphics2D)">setRenderingHintsForBufferedImage</A></CODE></TD>
  142. </TR>
  143. </TABLE>
  144. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  147. <TD><B>Methods inherited from class java.lang.Object</B></TD>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  151. </TR>
  152. </TABLE>
  153. &nbsp;
  154. <P>
  155. <!-- ============ FIELD DETAIL =========== -->
  156. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  157. <A NAME="constructor_detail"><!-- --></A>
  158. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  159. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  160. <TD COLSPAN=1><FONT SIZE="+2">
  161. <B>Constructor Detail</B></FONT></TD>
  162. </TR>
  163. </TABLE>
  164. <A NAME="Java2DGraphics2DAdapter()"><!-- --></A><H3>
  165. Java2DGraphics2DAdapter</H3>
  166. <PRE>
  167. public <B>Java2DGraphics2DAdapter</B>()</PRE>
  168. <DL>
  169. </DL>
  170. <!-- ============ METHOD DETAIL ========== -->
  171. <A NAME="method_detail"><!-- --></A>
  172. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  173. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  174. <TD COLSPAN=1><FONT SIZE="+2">
  175. <B>Method Detail</B></FONT></TD>
  176. </TR>
  177. </TABLE>
  178. <A NAME="paintImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter, org.apache.fop.render.RendererContext, int, int, int, int)"><!-- --></A><H3>
  179. paintImage</H3>
  180. <PRE>
  181. public void <B>paintImage</B>(org.apache.xmlgraphics.java2d.Graphics2DImagePainter&nbsp;painter,
  182. <A HREF="../../../../../org/apache/fop/render/RendererContext.html" title="class in org.apache.fop.render">RendererContext</A>&nbsp;context,
  183. int&nbsp;x,
  184. int&nbsp;y,
  185. int&nbsp;width,
  186. int&nbsp;height)
  187. throws java.io.IOException</PRE>
  188. <DL>
  189. <DD>Paints an arbitrary images on a given Graphics2D instance. The renderer
  190. providing this functionality must set up a Graphics2D instance so that
  191. the image with the given extents (in mpt) can be painted by the painter
  192. passed to this method. The Graphics2DImagePainter is then passed this
  193. Graphics2D instance so the image can be painted.
  194. <P>
  195. <DD><DL>
  196. <DT><B>Parameters:</B><DD><CODE>painter</CODE> - the painter which will paint the actual image<DD><CODE>context</CODE> - the renderer context for the current renderer<DD><CODE>x</CODE> - X position of the image<DD><CODE>y</CODE> - Y position of the image<DD><CODE>width</CODE> - width of the image<DD><CODE>height</CODE> - height of the image
  197. <DT><B>Throws:</B>
  198. <DD><CODE>java.io.IOException</CODE> - In case of an I/O error while writing the output format</DL>
  199. </DD>
  200. </DL>
  201. <!-- ========= END OF CLASS DATA ========= -->
  202. <HR>
  203. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  204. <A NAME="navbar_bottom"><!-- --></A>
  205. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  206. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  207. <TR>
  208. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  209. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  210. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  211. <TR ALIGN="center" VALIGN="top">
  212. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  213. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  214. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  215. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Java2DGraphics2DAdapter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  216. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  217. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  218. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  219. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  220. </TR>
  221. </TABLE>
  222. </TD>
  223. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  224. fop 1.0</EM>
  225. </TD>
  226. </TR>
  227. <TR>
  228. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  229. &nbsp;<A HREF="../../../../../org/apache/fop/render/java2d/Java2DFontMetrics.html" title="class in org.apache.fop.render.java2d"><B>PREV CLASS</B></A>&nbsp;
  230. &nbsp;<A HREF="../../../../../org/apache/fop/render/java2d/Java2DGraphicsState.html" title="class in org.apache.fop.render.java2d"><B>NEXT CLASS</B></A></FONT></TD>
  231. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  232. <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  233. &nbsp;<A HREF="Java2DGraphics2DAdapter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  234. &nbsp;<SCRIPT type="text/javascript">
  235. <!--
  236. if(window==top) {
  237. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  238. }
  239. //-->
  240. </SCRIPT>
  241. <NOSCRIPT>
  242. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  243. </NOSCRIPT>
  244. </FONT></TD>
  245. </TR>
  246. <TR>
  247. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  248. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  249. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  250. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  251. </TR>
  252. </TABLE>
  253. <A NAME="skip-navbar_bottom"></A>
  254. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  255. <HR>
  256. Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.
  257. </BODY>
  258. </HTML>