|
||||||||||
| 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
showStructure.ShowStructure
public class ShowStructure
Displays unit cell structure.
Applet Parameters
| NAME | Variable Type | Default | Description |
|---|---|---|---|
| Animation | boolean | false | Configures system for animation of atom segments for the specified unit cell. |
| A | Float | 1.0 | Length for unit cell axis a. |
| B | Float | 1.0 | Length for unit cell axis b. |
| C | Float | 1.0 | Length for unit cell axis c. |
| CellType | Integer | 1 | Specifies the cell type:
1 simple cubic (default) |
| IsReady | String | JavaScript variable that will be set to true when applet has initialized. Must use MAYSCRIPT in APPLET tag to use this feature. | |
| Offset | float | 2.0 | Offset for positioning pieces and assembled pieces. |
| Red | Float | 0.0 | RGB red component for animated pieces. |
| Green | Float | 1.0 | RGB green component for animated pieces. |
| Blue | Float | 0.0 | RGB blue component for animated pieces. |
| Time | long | 2000 | Duration of each animation stage in milliseconds. |
| ViewDistance | float | 10.0 | Distance of view from origin. Set to keep entire scene in view. |
| 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 | |
|---|---|
ShowStructure()
|
|
| Method Summary | |
|---|---|
void |
addCellAtoms(float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Adds atoms centered on cell positions |
void |
addHoleAtoms(int s,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Adds atoms centered on hole positions |
void |
addLayer(int nx,
int ny,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Creates a layer of closest-packed atoms in the plane at z = 0; |
void |
addLineGroup(double x0,
double y0,
double z0,
double x1,
double y1,
double z1)
|
void |
addLineGroup(javax.vecmath.Point3d[] pts)
|
void |
addPoints(float r,
int nx,
int ny)
Adds a layer of points for a closest-packed structure |
void |
addSegments(int ns,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Creates a set of sphere segments (sphere center at the origin) ns = -1 atoms in center unit cell layer of an hcp structure ns = 0 atoms on vertices of hexagonal cell ns = 2 sphere cut into halves by xy plane ns = 4 sphere cut into quarters by xy and xz planes ns = 6 sphere cut into sixths by xy plane and phi = 0, 120, and 240 degrees ns = 8 sphere cut into eighths by xy, xz, and yz planes |
void |
addSegmentsD(float r,
float d,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Creates a set of sphere segments (sphere center at the origin) for atoms in center unit cell layer of an hcp structure |
void |
addSegmentsS(float r,
float d,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
Creates a set of sphere segments (sphere center at the origin) for atoms in center unit cell layer in a tetragonal cell |
void |
alignAtomAndPoint(int grp,
int idx,
int pt)
|
void |
assemblePieces()
|
void |
destroy()
|
java.lang.String |
getAppletInfo()
|
javax.vecmath.Vector3f |
getAtomGroupTranslation()
|
boolean |
getIsAnimate()
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
|
java.lang.String[][] |
getParameterInfo()
|
void |
init()
|
void |
mulUnitCellRotation(float x,
float y,
float z,
float a)
|
void |
mulUnitCellTranslation(float x,
float y,
float z)
|
void |
resetAnimation()
|
void |
run()
|
void |
setAtomGroupRotation(float x,
float y,
float z,
float a)
Sets the rotation for the entire set of AtomGroups |
void |
setAtomGroupRotation(int grp,
float x,
float y,
float z,
float a)
Sets the rotation for a specific AtomGroup |
void |
setAtomGroupTranslation(float x,
float y,
float z)
Sets the translation for the entire set of AtomGroups |
void |
setAtomGroupTranslation(int grp,
float x,
float y,
float z)
Sets the translation for a specific AtomGroup |
void |
setAtomGroupVisible(int grp,
boolean s)
Sets the visibility of all atoms in a group |
void |
setAtomVisible(int grp,
int idx,
boolean s)
Sets the visibility of the indicated atom |
void |
setCellGroupRotation(float x,
float y,
float z,
float a)
Sets the rotation for the cell group |
void |
setCellGroupTranslation(float x,
float y,
float z)
Sets the translation of the cell group |
void |
setFacesVisible(boolean s)
Sets the visibility of the unit cell faces |
void |
setLineGroupRotation(float x,
float y,
float z,
float a)
Sets the rotation for the entire set of LineGroups |
void |
setLineGroupRotation(int grp,
float x,
float y,
float z,
float a)
Sets the rotation for a specific LineGroup |
void |
setLineGroupsVisible(boolean s)
Sets the visibility of all LineGroups |
void |
setLineGroupTranslation(float x,
float y,
float z)
Sets the translation for the entire set of LineGroups |
void |
setLineGroupTranslation(int grp,
float x,
float y,
float z)
Sets the translation for a specific LineGroup |
void |
setLineGroupVisible(int idx,
boolean s)
Sets the visibility of the indicated LineGroup |
void |
setLinesVisible(boolean s)
Sets the visibility of the unit cell lines |
void |
setPointGroupRotation(float x,
float y,
float z,
float a)
Sets the rotation for the entire set of PointGroups |
void |
setPointGroupRotation(int grp,
float x,
float y,
float z,
float a)
Sets the rotation for a specific PointGroup |
void |
setPointGroupTranslation(float x,
float y,
float z)
Sets the translation for the entire set of PointGroups |
void |
setPointGroupTranslation(int grp,
float x,
float y,
float z)
Sets the translation for a specific PointGroup |
void |
setPointGroupVisible(boolean s)
Sets the visibility of all points in all groups |
void |
setPointGroupVisible(int grp,
boolean s)
Sets the visibility of all points in a group |
void |
setRotation(float x,
float y,
float z,
float a)
Set rotation for the entire structure. |
void |
setSegmentGroupRotation(float x,
float y,
float z,
float a)
Sets the rotation for the entire set of SegmentGroups |
void |
setSegmentGroupRotation(int grp,
float x,
float y,
float z,
float a)
Sets the rotation for a specific SegmentGroup |
void |
setSegmentGroupRotation(int grp,
int idx,
float x,
float y,
float z,
float a)
Sets the rotation for a specific SegmentGroup |
void |
setSegmentGroupTranslation(float x,
float y,
float z)
Sets the translation for the entire set of SegmentGroups |
void |
setSegmentGroupTranslation(int grp,
float x,
float y,
float z)
Sets the translation for a specific SegmentGroup |
void |
setSegmentGroupTranslation(int grp,
int idx,
float x,
float y,
float z)
Sets the translation for a specific SegmentGroup |
void |
setSegmentGroupVisible(int grp,
boolean s)
Sets the visibility of all segments in a group |
void |
setSegmentVisible(int grp,
int idx,
boolean s)
Sets the visibility of the indicated segment |
void |
setTranslation(float x,
float y,
float z)
Set the translation for the entire structure. |
void |
setUnitCellRotation(float x,
float y,
float z,
float a)
|
void |
setUnitCellTranslation(float x,
float y,
float z)
|
void |
setViewDistance(float r)
Sets the viewing distance. |
void |
showPieces()
|
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 ShowStructure()
| 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.Applet
public void addCellAtoms(float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
r - atom radiusdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue component
public void addHoleAtoms(int s,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
s - type of hole, where multiple holes geometries existr - atom radiusdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue component
public void addPoints(float r,
int nx,
int ny)
r - atom radiusnx - number of unit cells along x directionny - number of unit cells along y direction
public void addLayer(int nx,
int ny,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
nx - number of atoms along x axisny - number of atoms along y axisr - atom radiusdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue component
public void addSegments(int ns,
float r,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
ns - number of sphere segmentsr - sphere radiusdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue component
public void addSegmentsD(float r,
float d,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
r - sphere radiusd - distance from origin of sphere to planesdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue component
public void addSegmentsS(float r,
float d,
float dRed,
float dGreen,
float dBlue,
float eRed,
float eGreen,
float eBlue)
r - sphere radiusd - distance from origin of sphere to planesdRed - diffuse color red componentdGreen - diffuse color green componentdBlue - diffuse color blue componenteRed - emissive color red componenteGreen - emissive color green componenteBlue - emissive color blue componentpublic void addLineGroup(javax.vecmath.Point3d[] pts)
public void addLineGroup(double x0,
double y0,
double z0,
double x1,
double y1,
double z1)
public javax.vecmath.Vector3f getAtomGroupTranslation()
public void alignAtomAndPoint(int grp,
int idx,
int pt)
public void setAtomVisible(int grp,
int idx,
boolean s)
grp - group indexidx - atom indexs - visibility state
public void setAtomGroupVisible(int grp,
boolean s)
grp - group indexs - visibility state
public void setAtomGroupRotation(float x,
float y,
float z,
float a)
public void setAtomGroupTranslation(float x,
float y,
float z)
public void setAtomGroupRotation(int grp,
float x,
float y,
float z,
float a)
grp - index of AtomGroup
public void setAtomGroupTranslation(int grp,
float x,
float y,
float z)
grp - index of AtomGroup
public void setCellGroupRotation(float x,
float y,
float z,
float a)
public void setCellGroupTranslation(float x,
float y,
float z)
public void setFacesVisible(boolean s)
s - visibility statepublic void setLinesVisible(boolean s)
s - visibility state
public void setLineGroupRotation(float x,
float y,
float z,
float a)
public void setLineGroupTranslation(float x,
float y,
float z)
public void setLineGroupRotation(int grp,
float x,
float y,
float z,
float a)
grp - index of LineGroup
public void setLineGroupTranslation(int grp,
float x,
float y,
float z)
grp - index of LineGroup
public void setLineGroupVisible(int idx,
boolean s)
idx - LineGroup indexs - visibility statepublic void setLineGroupsVisible(boolean s)
s - visibility state
public void setPointGroupRotation(float x,
float y,
float z,
float a)
public void setPointGroupTranslation(float x,
float y,
float z)
public void setPointGroupRotation(int grp,
float x,
float y,
float z,
float a)
grp - index of PointGroup
public void setPointGroupTranslation(int grp,
float x,
float y,
float z)
grp - index of PointGrouppublic void setPointGroupVisible(boolean s)
s - visibility state
public void setPointGroupVisible(int grp,
boolean s)
grp - group indexs - visibility state
public void setSegmentVisible(int grp,
int idx,
boolean s)
grp - group indexidx - segment indexs - visibility state
public void setSegmentGroupVisible(int grp,
boolean s)
grp - group indexs - visibility state
public void setSegmentGroupRotation(float x,
float y,
float z,
float a)
public void setSegmentGroupTranslation(float x,
float y,
float z)
public void setSegmentGroupRotation(int grp,
float x,
float y,
float z,
float a)
grp - index of SegmentGroup
public void setSegmentGroupTranslation(int grp,
float x,
float y,
float z)
grp - index of SegmentGroup
public void setSegmentGroupRotation(int grp,
int idx,
float x,
float y,
float z,
float a)
grp - index of SegmentGroupidx - index of the segment
public void setSegmentGroupTranslation(int grp,
int idx,
float x,
float y,
float z)
grp - index of SegmentGroupidx - index of the segment
public void setRotation(float x,
float y,
float z,
float a)
public void setTranslation(float x,
float y,
float z)
public void mulUnitCellRotation(float x,
float y,
float z,
float a)
public void mulUnitCellTranslation(float x,
float y,
float z)
public void setUnitCellRotation(float x,
float y,
float z,
float a)
public void setUnitCellTranslation(float x,
float y,
float z)
public void setViewDistance(float r)
r - new viewing distance (along z axis)public void showPieces()
public void assemblePieces()
public void resetAnimation()
public boolean getIsAnimate()
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||