|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
javax.media.j3d.Canvas3D
net.pacbell.jfai.toh.ui.Canvas3D
public class Canvas3D
A Canvas3D with these special features:
Caution: Do not use if the canvas is the only component in a focus chain.
| Nested Class Summary | |
|---|---|
static interface |
Canvas3D.IPaintListener
Interface for listeners interested in notifications when the canvas is painted the very first time. |
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
Canvas3D(GraphicsConfiguration arg1)
Creates an instance for the graphics configuration. |
|
Canvas3D(GraphicsConfiguration arg1,
boolean arg2)
Creates an instance for the graphics configuration and off-screen flag. |
|
| Method Summary | |
|---|---|
void |
addPaintListener(Canvas3D.IPaintListener listener)
Adds a listener for notification. |
void |
focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. |
boolean |
isFocusable()
|
void |
paint(Graphics g)
After painting the canvas, notifies any registered listener if this is the very first time that this method was invoked. |
void |
removePaintListener(Canvas3D.IPaintListener listener)
Removes the listener for notification. |
| 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 |
| Constructor Detail |
|---|
public Canvas3D(GraphicsConfiguration arg1)
Canvas3D.Canvas3D(java.awt.GraphicsConfiguration)
public Canvas3D(GraphicsConfiguration arg1,
boolean arg2)
Canvas3D.Canvas3D(java.awt.GraphicsConfiguration,
boolean)| Method Detail |
|---|
public void addPaintListener(Canvas3D.IPaintListener listener)
This implementation only supports one listener at any one time.
listener - the listenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - a focus eventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - a focus eventpublic boolean isFocusable()
isFocusable in class ComponentComponent.isFocusable()public void paint(Graphics g)
paint in class Canvas3DComponent.paint(java.awt.Graphics)public void removePaintListener(Canvas3D.IPaintListener listener)
listener - the listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||