|
|||||||
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
ripple.Ripple
Class Ripple
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 |
Constructor Summary | |
Ripple()
|
Method Summary | |
int |
addObject(java.lang.String name,
java.lang.String parList)
Create an object and add it to the Physlet. |
int |
addSource()
Adds a source. |
int |
addSource(double x,
double y,
double amp,
double phase)
Add a sinusoidal source to the ripple tank. |
void |
cancel()
Cancels the generation of the animation frames. |
void |
deleteAll()
Removes all sources. |
void |
edit()
Edit mode. |
void |
editSources()
Edit source mode. |
void |
forward()
Starts the animation. |
void |
pause()
Pauses the animation. |
void |
recalculate()
Recalculates the animation frames. |
boolean |
setAnimationSlave(int masterID,
int slaveID)
Forces an object to follow another object on the screen. |
boolean |
setConstraint(int id,
int constraintID)
Sets a motion constraint on an object. |
void |
setDefault()
Sets the ripple tank default. |
boolean |
setDisplayOffset(int id,
int xOff,
int yOff)
Offsets the object's position on the screen from its default drawing position. |
void |
setDrag(boolean drag)
Sets the default drag option. |
boolean |
setDragable(int id,
boolean drag)
Changes the drag property. |
boolean |
setRGB(int id,
int r,
int g,
int b)
Sets the red, green, and blue color values for a wire or coil that has already been created. |
void |
setWavelength(double w)
Sets the wavelength. |
void |
setZScale(double s)
Sets the intensity scale. |
void |
showIntensity(boolean val)
Shows the intensity or the amplitude. |
void |
startAnimate()
Starts the animation. |
void |
stepBack()
Steps back one frame. |
void |
stepForward()
Steps forward one frame. |
void |
stepTimeBack()
Steps the movie back by one frame. |
void |
stepTimeForward()
Step the movie forward by one frame. |
void |
stopAnimate()
Stops the animation. |
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 |
Methods inherited from interface java.lang.Runnable |
run |
Constructor Detail |
public Ripple()
Method Detail |
public void setDrag(boolean drag)
drag
- true to drag new objectspublic void setZScale(double s)
s
- public void setWavelength(double w)
w
- public boolean setDisplayOffset(int id, int xOff, int yOff)
id
- The id of the object.xOff
- yOff
-
public boolean setRGB(int id, int r, int g, int b)
id
- The id for the wire or loop.r
- red.g
- green.b
- blue.
public boolean setDragable(int id, boolean drag)
id
- the object identifierdrag
- true if dragable
public void showIntensity(boolean val)
val
- true for intensity; false for amplitudepublic void cancel()
public void pause()
pause
in class SApplet
public void stopAnimate()
public void startAnimate()
public void stepTimeForward()
stepTimeForward
in class SApplet
public void stepForward()
public void stepTimeBack()
stepTimeBack
in class SApplet
public void stepBack()
public void recalculate()
public void forward()
forward
in class SApplet
public void edit()
public void editSources()
public int addSource()
public int addSource(double x, double y, double amp, double phase)
x
- the x positiony
- the y positionamp
- the amplitudephase
- the phase angle
public int addObject(java.lang.String name, java.lang.String parList)
addObject ("circle", "x = 0, y = -1.0, r = 10");
name
- the type of object to be created.parList
- a list of parameters to be set
public boolean setAnimationSlave(int masterID, int slaveID)
masterID
- The id of the master object.slaveID
- The id of the slave object.
public boolean setConstraint(int id, int constraintID)
id
- the ID of the object.constraintID
- the ID of the constraint.
true
if successful.public void setDefault()
setDefault
in class SApplet
public void deleteAll()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |