|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
showHybrid.ShowHybrid
public class ShowHybrid
Displays orbital isosurfaces given a point set.
Applet Parameters
| NAME | Variable Type | Default | Description |
|---|---|---|---|
| CreateAxes | Boolean | False | Determines whether coordinate axes will be created. |
| EnableRotate | Boolean | True | Allows orbital to be individually rotated. |
| IsReady | String | JavaScript variable that will be set to true when applet has initialized. Must use MAYSCRIPT in APPLET tag to use this feature. | |
| Path | String | Path from the current directory to the orbital VRML files | |
| Set | int | 1 | Each set bit represents an orbital set to be loaded. bit 0 2s and 2p orbitals bit 1 sp, 2px, and 2py orbitals bit 2 sp2 and 2pz orbitals bit 3 sp3 orbitals bit 4 3d orbitals |
| Radius | float | 1.0 | Radius of spheres. |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.BaselineResizeBehavior |
| Field Summary |
|---|
| 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 | |
|---|---|
ShowHybrid()
|
|
| Method Summary | |
|---|---|
void |
alignOrbitals()
For matched sphere geometries and orbitals sets, rotates the orbitals to place the z-axis along the highest axis of symmetry for the sphere geometry. |
void |
destroy()
|
java.lang.String |
getAppletInfo()
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
|
java.lang.String[][] |
getParameterInfo()
|
javax.vecmath.AxisAngle4d |
getRotation()
Provides the current setting for the system TransformGroup. |
double |
getRotationAngle()
Returns the x component of the axis of rotation for the current transform |
double |
getRotationX()
Returns the x component of the axis of rotation for the current transform |
double |
getRotationY()
Returns the y component of the axis of rotation for the current transform |
double |
getRotationZ()
Returns the z component of the axis of rotation for the current transform |
void |
init()
|
void |
rotateSpheres(double x,
double y,
double z,
double a)
Rotates the spheres. |
void |
setAtomView(double x,
double y,
double z,
double xa,
double ya,
double za,
double a)
Sets the rotation for a specific atom to view down the x axis. |
void |
setAxesLength(float r)
Sets the range of all axes from -r to r. |
void |
setAxesLength(float xL,
float xU,
float yL,
float yU,
float zL,
float zU)
Sets the lengths of the axes. |
void |
setAxesVisible(boolean s)
Indicates whether axes are visible |
void |
setFontSize(int s)
Sets the font size for the axes labels |
void |
setGeometry(int g,
double r)
Orients the spheres for a specific geometry: g = 2 linear g = 3 trigonal planar g = 4 tetrahedral g = 5 trigonal bipyramidal g = 6 octahedral g = 7 square planar |
void |
setOrbital(int n)
Determines which arrows or orbitals are displayed. |
void |
setOrbitalSet(int n)
Determines which orbital set is active. |
void |
setRadius(double r)
Sets the radius for the spheres. |
void |
setRotation(double x,
double y,
double z,
double a)
Set the rotation for the display. |
void |
setShowArrow(java.lang.Boolean s)
Determines whether arrows or orbitals are displayed |
void |
setShowOverlay(java.lang.Boolean s)
Determines whether arrows/orbitals are overlaid. |
void |
setSphereDistance(double r)
Sets the distance of the spheres from the origin. |
void |
setView(double x,
double y,
double z,
double a)
Sets the orbital orientation to a specific value. |
void |
setViewDistance(float r)
Sets the viewing distance. |
void |
setXView()
Sets the orbital orientation to view down the orbital x axis. |
void |
setYView()
Sets the orbital orientation to view down the orbital y axis. |
void |
setZView()
Sets the orbital orientation to view down the orbital z axis. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.applet.Applet |
|---|
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShowHybrid()
| Method Detail |
|---|
public java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic java.lang.String[][] getParameterInfo()
getParameterInfo in class java.applet.Applet
public java.lang.String getParameter(java.lang.String key,
java.lang.String def)
public void init()
init in class java.applet.Appletpublic void start()
start in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void destroy()
destroy in class java.applet.Appletpublic void alignOrbitals()
public javax.vecmath.AxisAngle4d getRotation()
public double getRotationX()
public double getRotationY()
public double getRotationZ()
public double getRotationAngle()
public void rotateSpheres(double x,
double y,
double z,
double a)
x - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotation
public void setAtomView(double x,
double y,
double z,
double xa,
double ya,
double za,
double a)
x - x positiony - y positionz - z positionxa - x-component of the axis of rotationya - y-component of the axis of rotationza - z-component of the axis of rotationa - angle of rotationpublic void setAxesLength(float r)
r - limits of each axis
public void setAxesLength(float xL,
float xU,
float yL,
float yU,
float zL,
float zU)
xL - lower limit of x axisxU - upper limit of x axisyL - lower limit of y axisyU - upper limit of y axiszL - lower limit of z axiszU - upper limit of z axispublic void setAxesVisible(boolean s)
s - visibility statepublic void setFontSize(int s)
s - font size for the axes labels
public void setGeometry(int g,
double r)
g - geometry indicatorr - distance of spheres from originpublic void setOrbital(int n)
n - index of item to be displayedpublic void setOrbitalSet(int n)
n - index of orbital setpublic void setRadius(double r)
r - radius
public void setRotation(double x,
double y,
double z,
double a)
x - x component of axis of rotationy - y component of axis of rotationz - z component of axis of rotationa - angle of rotationpublic void setShowArrow(java.lang.Boolean s)
s - displays arrows if truepublic void setShowOverlay(java.lang.Boolean s)
s - overlays if truepublic void setSphereDistance(double r)
r - distance from origin
public void setView(double x,
double y,
double z,
double a)
x - x-component of the axis of rotationy - y-component of the axis of rotationz - z-component of the axis of rotationa - angle of rotation (right hand rule)public void setViewDistance(float r)
r - new viewing distance (along z axis)setBoundsRadiuspublic void setXView()
public void setYView()
public void setZView()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||