|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--javax.media.j3d.Canvas3D | +--com.klg.jclass.chart3d.j3d.JCCanvas3D
Nested Class Summary |
Nested classes inherited from class java.awt.Canvas |
Canvas.AccessibleAWTCanvas |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
bufferedImageType
|
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d |
chart3d
|
Fields inherited from class javax.media.j3d.Canvas3D |
FIELD_ALL, FIELD_LEFT, FIELD_RIGHT |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCCanvas3D(GraphicsConfiguration cfg)
Creates a special Canvas3D needed for Chart3D image capture. |
Method Summary | |
void |
addMouseListener(MouseListener l)
|
void |
addMouseMotionListener(MouseMotionListener l)
|
Image |
getAsImage()
Captures an image from the Canvas3D . |
BufferedImage |
getBufferedImage(int type)
Captures an image from the Canvas3D . |
int |
getBufferedImageType()
Returns the value of the bufferedImageType property. |
boolean |
getWaitRenderFlag()
Returns the value of the JCCanvas3D busy flag. |
void |
postRender()
Invoked when the Java 3D renderer is done. |
void |
postSwap()
|
protected void |
processMouseEvent(MouseEvent e)
|
protected void |
processMouseMotionEvent(MouseEvent e)
|
void |
removeMouseListener(MouseListener l)
|
void |
removeMouseMotionListener(MouseMotionListener l)
|
void |
setBufferedImageType(int type)
This method sets the value of the bufferedImageType property. |
void |
setChart3d(com.klg.jclass.chart3d.j3d.JCChart3dJava3d chart3d)
|
void |
setWaitRenderFlag(boolean flag)
Sets the JCCanvas3D busy flag to the specified value. |
Methods inherited from class java.awt.Canvas |
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d chart3d
protected int bufferedImageType
Constructor Detail |
public JCCanvas3D(GraphicsConfiguration cfg)
Canvas3D
needed for Chart3D
image capture.
cfg
- a GraphicsConfiguration
objectMethod Detail |
public void postRender()
JCCanvas3D
busy flag.
postRender
in class Canvas3D
public void setWaitRenderFlag(boolean flag)
JCCanvas3D
busy flag to the specified value.
flag
- public boolean getWaitRenderFlag()
JCCanvas3D
busy flag.
public void postSwap()
postSwap
in class Canvas3D
public void setBufferedImageType(int type)
type
- The new value for the bufferedImageType property.
Supported types include BufferedImage.TYPE_INT_ARGB,
BufferedImage.TYPE_USHORT_555_RGB, and BufferedImage.TYPE_INT_RGB.public int getBufferedImageType()
public Image getAsImage()
Canvas3D
.
Image
object or null if an error
occurred. The default type is BufferedImage.TYPE_INT_RGBpublic BufferedImage getBufferedImage(int type) throws IllegalArgumentException
Canvas3D
.
type
- An integer specifying the Image type.
Supported types include BufferedImage.TYPE_INT_ARGB,
BufferedImage.TYPE_USHORT_555_RGB, and BufferedImage.TYPE_INT_RGB.
BufferedImage
object
IllegalArgumentException
public void setChart3d(com.klg.jclass.chart3d.j3d.JCChart3dJava3d chart3d)
public void addMouseListener(MouseListener l)
addMouseListener
in class Component
public void removeMouseListener(MouseListener l)
removeMouseListener
in class Component
public void addMouseMotionListener(MouseMotionListener l)
addMouseMotionListener
in class Component
public void removeMouseMotionListener(MouseMotionListener l)
removeMouseMotionListener
in class Component
protected void processMouseEvent(MouseEvent e)
processMouseEvent
in class Component
protected void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent
in class Component
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |