|
|||||||
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
edu.davidson.tools.SApplet
emwave4.EMWave
Class EMWave
Field Summary |
Fields inherited from class edu.davidson.tools.SApplet |
destroyed |
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 |
Method Summary | |
void |
createAxes(double x,
double y,
double z,
double s)
Creates axes at (x,y,z) with length s. |
void |
createCircularLeft(double z1,
double z2,
double a,
double ph)
Creates a clockwise rotating circular wave extending from z1 to z2, with amplitude a, and phase ph. |
void |
createCircularRight(double z1,
double z2,
double a,
double ph)
Creates a counterclockwise rotating circular wave extending from z1 to z2, with amplitude a and phase ph. |
void |
createFilledSquare(double z,
double s)
Creates a filled square at {0,0,z}with a side length s. |
void |
createLinear(double z1,
double z2,
double a,
double ph,
double p)
Creates a linearly polarized wave extending from z1 to z2 with amplitude a, phase ph, and polarization pol. |
void |
createParsed(java.lang.String s,
double z1,
double z2,
double p)
Creates a wave function with an amplitdue envelope defined by a function extending from z1 to z2 with polarization pol. |
void |
createPlane(double z1,
double length,
double width,
double p)
Creates a plane composed of lines at {0,0,z}with length l, width w, and polarization pol. |
void |
createSquare(double z,
double s)
Creates an outlined square at {0,0,z} with a side length s. |
void |
deleteAll()
Deletes all objects from the screen. |
void |
forward()
Starts the animation. |
void |
pause()
Pauses the animation. |
void |
setOrientation(double t,
double a,
double p)
Rotates the figures an amount theta in the x-y plane (z-axis rotation), alpha in the x-z plane (y-axis rotation), and theta in the y-z plane (x-axis rotation). |
void |
setOrigin(int x,
int y)
Translates the origin from the current origin to {x,y}. |
void |
setPixPerUnit(int ppu)
Sets the scale. |
void |
setPlaneLineDensity(int d)
Sets the line density of the all Plane figures to d. |
void |
setRGB(int r,
int g,
int b)
Sets the color to {r,g,b} in which all subsequent figures are drawn in. |
void |
setWavelength(double l)
Sets the wavelength of all waves to w. |
void |
setWaveLineDensity(int d)
Sets the line density of all waves to d. |
void |
step(double dt,
double time)
Step to the next animation frame. |
Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start |
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, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, 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, 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, isOpaque, 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, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void forward()
forward
in class SApplet
public void pause()
pause
in class SApplet
public void step(double dt, double time)
step
in interface edu.davidson.tools.SStepable
dt
- the time steptime
- the current time.public void setOrientation(double t, double a, double p)
t
- a
- p
- public void setOrigin(int x, int y)
x
- y
- public void setWaveLineDensity(int d)
d
- public void setPlaneLineDensity(int d)
d
- public void setPixPerUnit(int ppu)
ppu
- public void setWavelength(double l)
l
- public void setRGB(int r, int g, int b)
r
- g
- b
- public void createAxes(double x, double y, double z, double s)
x
- y
- z
- s
- public void createSquare(double z, double s)
z
- s
- public void createFilledSquare(double z, double s)
z
- s
- public void createLinear(double z1, double z2, double a, double ph, double p)
z1
- z2
- a
- ph
- the phase anglep
- the polarizaitonpublic void createCircularRight(double z1, double z2, double a, double ph)
z1
- z2
- a
- ph
- public void createCircularLeft(double z1, double z2, double a, double ph)
z1
- z2
- a
- ph
- public void createPlane(double z1, double length, double width, double p)
z1
- length
- width
- p
- public void createParsed(java.lang.String s, double z1, double z2, double p)
s
- the amplitude functionz1
- z2
- p
- public void deleteAll()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |