|
||||||||||
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
org.wilmascope.view.GraphCanvas
public class GraphCanvas
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Canvas |
---|
java.awt.Canvas.AccessibleAWTCanvas |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected GraphPickBehavior |
pb
|
protected javax.media.j3d.TransformGroup |
rotationTransformGroup
|
protected javax.media.j3d.TransformGroup |
stretchTransformGroup
|
protected javax.media.j3d.TransformGroup |
transformGroup
|
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 | |
---|---|
GraphCanvas(int xsize,
int ysize)
Creates new GraphScene |
Method Summary | |
---|---|
void |
addGraphElementView(GraphElementView view)
|
javax.media.j3d.Behavior |
addPerFrameBehavior(BehaviorClient client)
|
void |
behaviorWakeup()
|
void |
createUniverse()
|
java.awt.Color |
getBackgroundColor()
|
javax.media.j3d.Bounds |
getBoundingSphere()
|
javax.media.j3d.BranchGroup |
getBranchGroup()
|
float |
getFogDensity()
|
LightManager |
getLightManager()
|
com.sun.j3d.utils.behaviors.mouse.MouseRotate |
getMouseRotate()
|
com.sun.j3d.utils.behaviors.mouse.MouseTranslate |
getMouseTranslate()
|
com.sun.j3d.utils.behaviors.mouse.MouseZoom |
getMouseZoom()
|
RotationBehavior |
getRotationBehavior()
|
javax.media.j3d.TransformGroup |
getRotationGroup()
|
javax.media.j3d.TransformGroup |
getTransformGroup()
|
void |
reorient()
|
void |
reorient(javax.media.j3d.Transform3D reorientTransform)
|
void |
reorient(javax.vecmath.Vector3f position)
|
void |
reorient(javax.vecmath.Vector3f position,
float width)
Moves the graph (animated movement) such that position is centred and an object of the specified width fits into the view. |
void |
setAntialiasingEnabled(boolean enabled)
|
void |
setBackgroundColor(java.awt.Color c)
|
void |
setBackgroundColor(javax.vecmath.Color3f c)
|
void |
setBackgroundTexture(java.lang.String imagePath)
|
void |
setBackgroundTexture(java.net.URL url)
|
void |
setFogDensity(float d)
|
void |
setParallelProjection(boolean enabled)
|
void |
setPickingEnabled(boolean enabled)
|
void |
setRootPickingClient(PickingClient client)
|
void |
setScale(double scale)
|
void |
setScale(javax.vecmath.Vector3d scale)
|
void |
setSphericalBackgroundTexture(java.lang.String imagePath)
|
void |
setStereoSeparation(double separation)
|
void |
toggleRotator()
|
void |
writeJPEG(java.lang.String path,
float scale)
|
Methods inherited from class javax.media.j3d.Canvas3D |
---|
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, paint, postRender, postSwap, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRendering |
Methods inherited from class java.awt.Canvas |
---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
Methods inherited from class java.awt.Component |
---|
action, 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, 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, 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, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GraphPickBehavior pb
protected javax.media.j3d.TransformGroup transformGroup
protected javax.media.j3d.TransformGroup stretchTransformGroup
protected javax.media.j3d.TransformGroup rotationTransformGroup
Constructor Detail |
---|
public GraphCanvas(int xsize, int ysize)
Method Detail |
---|
public void setSphericalBackgroundTexture(java.lang.String imagePath)
public void setBackgroundTexture(java.lang.String imagePath)
public void setBackgroundTexture(java.net.URL url)
public javax.media.j3d.Bounds getBoundingSphere()
public void toggleRotator()
public void createUniverse()
public void setStereoSeparation(double separation)
public void setAntialiasingEnabled(boolean enabled)
public void setParallelProjection(boolean enabled)
public void setScale(double scale)
public void setScale(javax.vecmath.Vector3d scale)
public javax.media.j3d.Behavior addPerFrameBehavior(BehaviorClient client)
public com.sun.j3d.utils.behaviors.mouse.MouseTranslate getMouseTranslate()
public com.sun.j3d.utils.behaviors.mouse.MouseRotate getMouseRotate()
public com.sun.j3d.utils.behaviors.mouse.MouseZoom getMouseZoom()
public void addGraphElementView(GraphElementView view)
public javax.media.j3d.TransformGroup getTransformGroup()
public javax.media.j3d.TransformGroup getRotationGroup()
public void behaviorWakeup()
public javax.media.j3d.BranchGroup getBranchGroup()
public void reorient()
public void reorient(javax.vecmath.Vector3f position)
public void reorient(javax.vecmath.Vector3f position, float width)
position
- new originwidth
- of object at position to fit into view frustumpublic void reorient(javax.media.j3d.Transform3D reorientTransform)
public void setBackgroundColor(javax.vecmath.Color3f c)
public void setBackgroundColor(java.awt.Color c)
public java.awt.Color getBackgroundColor()
public float getFogDensity()
public void setFogDensity(float d)
public void setRootPickingClient(PickingClient client)
public void setPickingEnabled(boolean enabled)
public LightManager getLightManager()
public RotationBehavior getRotationBehavior()
public void writeJPEG(java.lang.String path, float scale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |