public class PamPanel3D extends PamPanel
Modifier and Type | Class and Description |
---|---|
class |
PamPanel3D.PamCanvas3D |
Modifier and Type | Field and Description |
---|---|
AxisVisualisation |
axisVis |
javax.media.j3d.BoundingSphere |
bounds |
javax.media.j3d.BranchGroup |
graphGroup |
javax.media.j3d.BranchGroup |
graphicsGroup |
javax.media.j3d.BranchGroup |
rootGroup |
javax.media.j3d.TransformGroup |
rotateGroup |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
PamPanel3D(java.awt.Frame frame)
Create a spectrogram
|
PamPanel3D(java.awt.Frame frame,
boolean pickable) |
Modifier and Type | Method and Description |
---|---|
void |
addAxisVisulaisation(java.lang.String axisX,
java.lang.String axisY,
java.lang.String axisZ)
Add a small icon to show the oreintation of the graph
|
void |
addChildtoGraphicsGroup(javax.media.j3d.BranchGroup bg) |
void |
addChildtoGraphicsGroup(javax.media.j3d.TransformGroup tg) |
void |
addChildtoRotateGroup(javax.media.j3d.BranchGroup branchGroup)
Add a branchgroup to the rotateGroup
|
void |
addChildtoRotateGroup(javax.media.j3d.TransformGroup tg)
Add a transform group to the rotateGroup
|
void |
addLight(javax.media.j3d.DirectionalLight light1)
Add lighting to the root group.
|
void |
addMouseGetVirtualLocation(MouseGetVirtualLocation mouseGetVirtualLocation) |
void |
addMouseRightClickMenu(com.sun.j3d.utils.behaviors.mouse.MouseBehavior mouserightClick) |
void |
addMouseRotate()
Add mouse rotate functionality.
|
void |
addMouseTranslate()
Add mouse translate functionality.
|
void |
addMouseZoom()
Add mouse zoom functionality.
|
void |
clearGraphicsGroup() |
void |
clearRotateGroup() |
static javax.media.j3d.Node |
createPickableObject(javax.media.j3d.Node node)
Makes a Java3D object suitable for pick reporting
|
javax.media.j3d.BranchGroup |
createSpectroSceneGraph()
Create the 3D components and 3D interaction components
|
java.awt.image.BufferedImage |
getBufferedImage() |
javax.media.j3d.Canvas3D |
getCanvas3D() |
javax.media.j3d.BranchGroup |
getGraphicsGroup()
Create the 3D graph axis.
|
MouseProportionalZoom |
getMouseProportionalZoom() |
com.sun.j3d.utils.picking.PickCanvas |
getPickCanvas() |
javax.media.j3d.BranchGroup |
getRootGroup()
Get the rootGroup.
|
javax.media.j3d.TransformGroup |
getRotateGroup()
Get the rotate group containing graphics and mouse interaction behaviours.
|
javax.media.j3d.View |
getView() |
void |
init()
Initialise the 3D Graph.
|
boolean |
isOffscreen() |
void |
removeAxisVisulaisation() |
void |
removeLight()
Remove lighting from root group.
|
void |
removeMouseRotate()
Remove the rotate functionality.
|
void |
removeMouseTranslate()
Remove the translate functionality.
|
void |
removeMouseZoom()
Remove the mouse zoom functionality.
|
void |
resetPlot(double Z)
Resets rotateGroup with Z axis translation of Z preserving the aspect ratio.
|
void |
resetPlotRotation()
Resets plot to default rotation, maintaining aspect ratio and translation components.
|
javax.media.j3d.Transform3D |
rotate(double rotateAngle,
javax.media.j3d.Transform3D trs2D) |
void |
rotatePlot(double angle)
Rotate the plot by specified angle;
|
void |
setAspectRatio()
Set the aspect ratio of the graph to match the containing window aspect ratio.
|
void |
setAspectRatioEnabled(boolean aspectRatio)
Enable ore disable 3D scaling with window aspect ratio
|
void |
setAxisVisTransform() |
void |
setBackground(java.awt.Color arg0) |
void |
setMouseTranslateFactor(double factor) |
void |
setMouseZoomFactor(double factor) |
void |
setOffscreen(boolean offscreen)
Set an offscreen canvas.
|
void |
transformAspectRatio(javax.vecmath.Vector3d v)
Change the aspect ratio of the rotateGroup, preserving translation etc.
|
void |
translateGraphics(javax.vecmath.Vector3d v)
Move the graphics group by vector3d v;
|
void |
translateRotGroup(javax.vecmath.Vector3d v)
Move the rotateGroup by vector3d v, maintaining rotation components.;
|
addComponent, getColorId, getDefaultColor, getFrame, getPreferredBorderColours, layoutGrid, setDefaultColor, setPreferredBorderColour
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public javax.media.j3d.BranchGroup rootGroup
public javax.media.j3d.TransformGroup rotateGroup
public javax.media.j3d.BranchGroup graphicsGroup
public javax.media.j3d.BranchGroup graphGroup
public AxisVisualisation axisVis
public javax.media.j3d.BoundingSphere bounds
public PamPanel3D(java.awt.Frame frame)
public PamPanel3D(java.awt.Frame frame, boolean pickable)
public void setBackground(java.awt.Color arg0)
setBackground
in class PamPanel
public javax.media.j3d.BranchGroup createSpectroSceneGraph()
public void addAxisVisulaisation(java.lang.String axisX, java.lang.String axisY, java.lang.String axisZ)
public void removeAxisVisulaisation()
public void setAxisVisTransform()
public void setAspectRatio()
public void setAspectRatioEnabled(boolean aspectRatio)
aspectRatio
- public void removeLight()
public void addLight(javax.media.j3d.DirectionalLight light1)
light1
- public javax.media.j3d.BranchGroup getRootGroup()
public javax.media.j3d.TransformGroup getRotateGroup()
public void addChildtoRotateGroup(javax.media.j3d.BranchGroup branchGroup)
branchGroup
- public void addChildtoRotateGroup(javax.media.j3d.TransformGroup tg)
tg
- public void addChildtoGraphicsGroup(javax.media.j3d.BranchGroup bg)
public void addChildtoGraphicsGroup(javax.media.j3d.TransformGroup tg)
public void clearGraphicsGroup()
public void clearRotateGroup()
public void addMouseRightClickMenu(com.sun.j3d.utils.behaviors.mouse.MouseBehavior mouserightClick)
public void addMouseGetVirtualLocation(MouseGetVirtualLocation mouseGetVirtualLocation)
public void addMouseRotate()
public void addMouseTranslate()
public void addMouseZoom()
public void removeMouseRotate()
public void removeMouseTranslate()
public void removeMouseZoom()
public void setMouseZoomFactor(double factor)
public void setMouseTranslateFactor(double factor)
public void transformAspectRatio(javax.vecmath.Vector3d v)
public void translateRotGroup(javax.vecmath.Vector3d v)
public void translateGraphics(javax.vecmath.Vector3d v)
public void resetPlot(double Z)
Z
- public void resetPlotRotation()
public void rotatePlot(double angle)
angle
- - radianspublic javax.media.j3d.Transform3D rotate(double rotateAngle, javax.media.j3d.Transform3D trs2D)
public javax.media.j3d.BranchGroup getGraphicsGroup()
public static javax.media.j3d.Node createPickableObject(javax.media.j3d.Node node)
node
- public javax.media.j3d.Canvas3D getCanvas3D()
public com.sun.j3d.utils.picking.PickCanvas getPickCanvas()
public boolean isOffscreen()
public void setOffscreen(boolean offscreen)
offscreen
- public void init()
public javax.media.j3d.View getView()
public MouseProportionalZoom getMouseProportionalZoom()
public java.awt.image.BufferedImage getBufferedImage()