public class Canvas3DChart extends Canvas3D
| Modifier and Type | Class and Description |
|---|---|
static interface |
Canvas3DChart.Paint
Interface for 2D drawing on the canvas before or after the
the 3D image is drawn.
|
Canvas.AccessibleAWTCanvasComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyFIELD_ALL, FIELD_LEFT, FIELD_RIGHTBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
Canvas3DChart()
Creates a Canvas3DChart with a new Chart3D object.
|
Canvas3DChart(Chart3D chart)
Creates a Canvas3DChart with a given Chart3D object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPostRenderPaint(Canvas3DChart.Paint paint)
Adds a Paint object to draw to the canvas
after the the 3D image is rendered.
|
void |
addPreRenderPaint(Canvas3DChart.Paint paint)
Adds a Paint object to draw to the canvas
before the the 3D image is rendered.
|
Chart3D |
getChart3D()
Returns the Chart3D associated with this canvas.
|
void |
paint(Graphics g)
Paint method overriden to correct a problem in JDK 1.4.
|
void |
postRender()
Calls the
Paint objects added to the post-render list. |
void |
postSwap()
Writes the chart to a file as a bitmap image.
|
void |
preRender()
Calls the
Paint objects added to the pre-render list. |
void |
removePostRenderPaint(Canvas3DChart.Paint paint)
Removes a Paint object from the list of
post-render Paint objects.
|
void |
removePreRenderPaint(Canvas3DChart.Paint paint)
Removes a Paint object from the list of
pre-render Paint objects.
|
void |
render()
Creates a scene graph from the chart tree and starts
rendering the scene graph into this canvas.
|
void |
write(String filename,
String format)
Write the canvas as an image file after it is next redrawn.
|
addNotify, getBounds, getBounds, getCenterEyeInImagePlate, getDoubleBufferAvailable, getDoubleBufferEnable, getGraphics2D, getGraphicsContext3D, getHeight, getImagePlateToVworld, getInverseVworldProjection, getLeftEyeInImagePlate, getLeftManualEyeInImagePlate, getLocation, getLocation, getLocationOnScreen, getMonoscopicViewPolicy, getOffScreenBuffer, getOffScreenLocation, getOffScreenLocation, getPhysicalHeight, getPhysicalWidth, getPixelLocationFromImagePlate, getPixelLocationInImagePlate, getPixelLocationInImagePlate, getRightEyeInImagePlate, getRightManualEyeInImagePlate, getSceneAntialiasingAvailable, getScreen3D, getSize, getSize, getStereoAvailable, getStereoEnable, getView, getVworldProjection, getVworldToImagePlate, getWidth, getX, getY, isOffScreen, isRendererRunning, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRenderingcreateBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validatepublic Canvas3DChart()
public Canvas3DChart(Chart3D chart)
chart - is the Chart3D object associated with this canvas.public void addPostRenderPaint(Canvas3DChart.Paint paint)
paint - is the Paint object to be removed.public void addPreRenderPaint(Canvas3DChart.Paint paint)
paint - implements the paint method
to be called before the 3D image is rendered.public Chart3D getChart3D()
public void paint(Graphics g)
public void postRender()
Paint objects added to the post-render list.
This routine is called by the Java 3D rendering loop after completing
all rendering to the canvas for this frame and before the buffer swap.
NOTE: Applications should not call this method.
postRender in class Canvas3Dpublic void postSwap()
write method to trigger writing of the image.
NOTE: Applications should not call this method.
public void preRender()
Paint objects added to the pre-render list.
This routine is called by the Java 3D rendering loop after clearing
the canvas and before any rendering has been done for this frame.
NOTE: Applications should not call this method.
public void removePostRenderPaint(Canvas3DChart.Paint paint)
paint - is the Paint object to be removed.public void removePreRenderPaint(Canvas3DChart.Paint paint)
paint - implements the paint method
to be called before the 3D image is rendered.public void render()
public void write(String filename, String format)
filename - is the name of the file to which the image is to be written.format - is the image format name, such as "PNG" or "JPEG".
The supported formats are the same as for ImageIO.write.ImageIO.write(java.awt.image.RenderedImage, java.lang.String, javax.imageio.stream.ImageOutputStream)Copyright © 1970-2015 Rogue Wave Software
Built June 18 2015.