Java Doc for J3DGraphics2D.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » 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 » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Graphics
      java.awt.Graphics2D
         javax.media.j3d.J3DGraphics2D

All known Subclasses:   javax.media.j3d.J3DGraphics2DImpl,
J3DGraphics2D
abstract public class J3DGraphics2D extends Graphics2D (Code)
The J3DGraphics2D class extends Graphics2D to provide 2D rendering into a Canvas3D. It is an abstract base class that is further extended by a non-public Java 3D implementation class. This class allows Java 2D rendering to be mixed with Java 3D rendering in the same Canvas3D, subject to the same restrictions as imposed for 3D immediate-mode rendering: In mixed-mode rendering, all Java 2D requests must be done from one of the Canvas3D callback methods; in pure-immediate mode, the Java 3D renderer must be stopped for the Canvas3D being rendered into.

An application obtains a J3D 2D graphics context object from the Canvas3D object that the application wishes to render into by using the getGraphics2D method. A new J3DGraphics2D object is created if one does not already exist.

Note that the drawing methods in this class, including those inherited from Graphics2D, are not necessarily executed immediately. They may be buffered up for future execution. Applications must call the flush(boolean) method to ensure that the rendering actually happens. The flush method is implicitly called in the following cases:

  • The Canvas3D.swap method calls flush(true)
  • The Java 3D renderer calls flush(true) prior to swapping the buffer for a double buffered on-screen Canvas3D
  • The Java 3D renderer calls flush(true) prior to copying into the off-screen buffer of an off-screen Canvas3D
  • The Java 3D renderer calls flush(false) after calling the preRender, renderField, postRender, and postSwap Canvas3D callback methods.

A single-buffered, pure-immediate mode application must explicitly call flush to ensure that the graphics will be rendered to the Canvas3D.
See Also:   Canvas3D.getGraphics2D
since:
   Java 3D 1.2




Constructor Summary
 J3DGraphics2D()
    

Method Summary
final public  voidclearRect(int x, int y, int width, int height)
     This method is not supported.
final public  Graphicscreate()
     This method is not supported.
final public  Graphicscreate(int x, int y, int width, int height)
     This method is not supported.
abstract public  voiddrawAndFlushImage(BufferedImage img, int x, int y, ImageObserver observer)
     Draws the specified image and flushes the buffer.
abstract public  voidflush(boolean wait)
     Flushes all previously executed rendering operations to the drawing buffer for this 2D graphics object.
final public  ColorgetBackground()
     This method is not supported.
final public  voidsetBackground(Color color)
     This method is not supported.


Constructor Detail
J3DGraphics2D
J3DGraphics2D()(Code)




Method Detail
clearRect
final public void clearRect(int x, int y, int width, int height)(Code)
This method is not supported. Clearing a Canvas3D is done implicitly via a Background node in the scene graph or explicitly via the clear method in a 3D graphics context.
exception:
  UnsupportedOperationException - this method is not supported
See Also:   Background
See Also:   GraphicsContext3D.setBackground
See Also:   GraphicsContext3D.clear



create
final public Graphics create()(Code)
This method is not supported. The only way to obtain a J3DGraphics2D is from the associated Canvas3D.
exception:
  UnsupportedOperationException - this method is not supported
See Also:   Canvas3D.getGraphics2D



create
final public Graphics create(int x, int y, int width, int height)(Code)
This method is not supported. The only way to obtain a J3DGraphics2D is from the associated Canvas3D.
exception:
  UnsupportedOperationException - this method is not supported
See Also:   Canvas3D.getGraphics2D



drawAndFlushImage
abstract public void drawAndFlushImage(BufferedImage img, int x, int y, ImageObserver observer)(Code)
Draws the specified image and flushes the buffer. This is functionally equivalent to calling drawImage(...) followed by flush(false), but can avoid the cost of making an extra copy of the image in some cases. Anything previously drawn to this J3DGraphics2D will be flushed before the image is drawn.
Parameters:
  img - The image to draw
Parameters:
  x - The x location to draw at
Parameters:
  y - The y location to draw at
Parameters:
  observer - The ImageObserver
since:
   Java 3D 1.3



flush
abstract public void flush(boolean wait)(Code)
Flushes all previously executed rendering operations to the drawing buffer for this 2D graphics object.
Parameters:
  wait - flag indicating whether or not to wait for therendering to be complete before returning from this call.



getBackground
final public Color getBackground()(Code)
This method is not supported. Clearing a Canvas3D is done implicitly via a Background node in the scene graph or explicitly via the clear method in a 3D graphics context.
exception:
  UnsupportedOperationException - this method is not supported
See Also:   Background
See Also:   GraphicsContext3D.getBackground
See Also:   GraphicsContext3D.clear



setBackground
final public void setBackground(Color color)(Code)
This method is not supported. Clearing a Canvas3D is done implicitly via a Background node in the scene graph or explicitly via the clear method in a 3D graphics context.
exception:
  UnsupportedOperationException - this method is not supported
See Also:   Background
See Also:   GraphicsContext3D.setBackground
See Also:   GraphicsContext3D.clear



Methods inherited from java.awt.Graphics2D
abstract public void addRenderingHints(Map hints)(Code)(Java Doc)
abstract public void clip(Shape s)(Code)(Java Doc)
abstract public void draw(Shape s)(Code)(Java Doc)
public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void drawGlyphVector(GlyphVector g, float x, float y)(Code)(Java Doc)
abstract public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)(Code)(Java Doc)
abstract public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)(Code)(Java Doc)
abstract public void drawRenderableImage(RenderableImage img, AffineTransform xform)(Code)(Java Doc)
abstract public void drawRenderedImage(RenderedImage img, AffineTransform xform)(Code)(Java Doc)
abstract public void drawString(String str, int x, int y)(Code)(Java Doc)
abstract public void drawString(String str, float x, float y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, float x, float y)(Code)(Java Doc)
abstract public void fill(Shape s)(Code)(Java Doc)
public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public Color getBackground()(Code)(Java Doc)
abstract public Composite getComposite()(Code)(Java Doc)
abstract public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc)
abstract public FontRenderContext getFontRenderContext()(Code)(Java Doc)
abstract public Paint getPaint()(Code)(Java Doc)
abstract public Object getRenderingHint(Key hintKey)(Code)(Java Doc)
abstract public RenderingHints getRenderingHints()(Code)(Java Doc)
abstract public Stroke getStroke()(Code)(Java Doc)
abstract public AffineTransform getTransform()(Code)(Java Doc)
abstract public boolean hit(Rectangle rect, Shape s, boolean onStroke)(Code)(Java Doc)
abstract public void rotate(double theta)(Code)(Java Doc)
abstract public void rotate(double theta, double x, double y)(Code)(Java Doc)
abstract public void scale(double sx, double sy)(Code)(Java Doc)
abstract public void setBackground(Color color)(Code)(Java Doc)
abstract public void setComposite(Composite comp)(Code)(Java Doc)
abstract public void setPaint(Paint paint)(Code)(Java Doc)
abstract public void setRenderingHint(Key hintKey, Object hintValue)(Code)(Java Doc)
abstract public void setRenderingHints(Map hints)(Code)(Java Doc)
abstract public void setStroke(Stroke s)(Code)(Java Doc)
abstract public void setTransform(AffineTransform Tx)(Code)(Java Doc)
abstract public void shear(double shx, double shy)(Code)(Java Doc)
abstract public void transform(AffineTransform Tx)(Code)(Java Doc)
abstract public void translate(int x, int y)(Code)(Java Doc)
abstract public void translate(double tx, double ty)(Code)(Java Doc)

Methods inherited from java.awt.Graphics
abstract public void clearRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void clipRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)(Java Doc)
abstract public Graphics create()(Code)(Java Doc)
public Graphics create(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void dispose()(Code)(Java Doc)
public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc)
public void drawBytes(byte data, int offset, int length, int x, int y)(Code)(Java Doc)
public void drawChars(char data, int offset, int length, int x, int y)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public void drawLine(int x1, int y1, int x2, int y2)(Code)(Java Doc)
abstract public void drawOval(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void drawPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void drawPolygon(Polygon p)(Code)(Java Doc)
abstract public void drawPolyline(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void drawRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc)
abstract public void drawString(String str, int x, int y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc)
public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc)
abstract public void fillOval(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void fillPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void fillPolygon(Polygon p)(Code)(Java Doc)
abstract public void fillRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc)
public void finalize()(Code)(Java Doc)
abstract public Shape getClip()(Code)(Java Doc)
abstract public Rectangle getClipBounds()(Code)(Java Doc)
public Rectangle getClipBounds(Rectangle r)(Code)(Java Doc)
public Rectangle getClipRect()(Code)(Java Doc)
abstract public Color getColor()(Code)(Java Doc)
abstract public Font getFont()(Code)(Java Doc)
public FontMetrics getFontMetrics()(Code)(Java Doc)
abstract public FontMetrics getFontMetrics(Font f)(Code)(Java Doc)
public boolean hitClip(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void setClip(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void setClip(Shape clip)(Code)(Java Doc)
abstract public void setColor(Color c)(Code)(Java Doc)
abstract public void setFont(Font font)(Code)(Java Doc)
abstract public void setPaintMode()(Code)(Java Doc)
abstract public void setXORMode(Color c1)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract public void translate(int x, int y)(Code)(Java Doc)

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.