circuit
Class IVApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byedu.davidson.tools.SApplet
                      extended bycircuit.IVApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, edu.davidson.tools.SStepable

public final class IVApplet
extends SApplet
implements edu.davidson.tools.SStepable

See Also:
Serialized Form

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 forward()
          Called when the clock stops in one-shot mode.
 int getAmmeterID()
          Gets the ID for the ammeter.
 int getUnknownID()
          Gets the ID for the unknown part.
 int getVoltmeterID()
          Gets the ID for the voltmeter.
 boolean setACHint(java.lang.String str)
          Sets the hint for the voltage source.
 boolean setAmmeterHint(java.lang.String str)
          Sets the hint for the ammeter.
 void setAutoRefresh(boolean ar)
          Repaint whenevers the system parameters are changed.
 void setCurrentFunction(java.lang.String str)
           
 void setDefault()
          Reset the clock to time=0.
 void setFrequency(double f)
          Sets the frequency for the voltage source.
 void setIVGraphType(boolean iv)
           
 boolean setMilliAmp(boolean showMilliAmp)
           
 boolean setPartHint(java.lang.String str)
           
 void setPartLabel(java.lang.String str)
           
 void setPhaseFunction(java.lang.String str)
           
 void setPixPerCell(int ppc)
           
 void setShowCheckBox(boolean scb)
           
 void setShowControls(boolean sc)
           
 void setShowGraph(boolean sg)
           
 void setSourceVoltage(double v, boolean showV)
           
 void setTitle(java.lang.String str)
          Set the graph title.
 void setTMax(double tm)
           
 void setVoltage(double v)
           
 boolean setVoltmeterHint(java.lang.String str)
           
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, checkAppletNames, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, formatValue, getAppletName, getClockID, getClockTime, getDataFromDS, getDataListener, getDataSource, getDataSource, getDebugLevel, getID, getSourceData, getSourceVariables, isClockRunning, isValidFunction, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, sendDataToListener, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setConnectionWindowX, setConnectionWindowY, setDebugLevel, setDt, setExternalClock, setFPS, setIndependentClock, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stop, stopClock, updateDataConnection, updateDataConnections
 
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 edu.davidson.tools.SStepable
step
 

Method Detail

forward

public void forward()
Called when the clock stops in one-shot mode. DO NOT SCRIPT.

Overrides:
forward in class SApplet

getUnknownID

public final int getUnknownID()
Gets the ID for the unknown part. The ID can be used to make a connection to a SDataSource.

Returns:
int the indentifier

getAmmeterID

public final int getAmmeterID()
Gets the ID for the ammeter. The ID can be used to make a connection to a SDataSource.

Returns:
int the indentifier

getVoltmeterID

public final int getVoltmeterID()
Gets the ID for the voltmeter. The ID can be used to make a connection to a SDataSource.

Returns:
int the indentifier

setSourceVoltage

public void setSourceVoltage(double v,
                             boolean showV)

setDefault

public void setDefault()
Description copied from class: SApplet
Reset the clock to time=0.

Overrides:
setDefault in class SApplet

setAutoRefresh

public void setAutoRefresh(boolean ar)
Description copied from class: SApplet
Repaint whenevers the system parameters are changed.

Overrides:
setAutoRefresh in class SApplet
Parameters:
ar -

setTitle

public void setTitle(java.lang.String str)
Set the graph title.

Parameters:
str - Title string.

setCurrentFunction

public void setCurrentFunction(java.lang.String str)

setPhaseFunction

public void setPhaseFunction(java.lang.String str)

setVoltage

public void setVoltage(double v)

setFrequency

public void setFrequency(double f)
Sets the frequency for the voltage source.

Parameters:
f - the frequency

setTMax

public void setTMax(double tm)

setShowControls

public void setShowControls(boolean sc)

setShowCheckBox

public void setShowCheckBox(boolean scb)

setShowGraph

public void setShowGraph(boolean sg)

setPartLabel

public void setPartLabel(java.lang.String str)

setPartHint

public boolean setPartHint(java.lang.String str)

setVoltmeterHint

public boolean setVoltmeterHint(java.lang.String str)

setAmmeterHint

public boolean setAmmeterHint(java.lang.String str)
Sets the hint for the ammeter.

Parameters:
str - the hint
Returns:
true if successful; false otherwise

setMilliAmp

public boolean setMilliAmp(boolean showMilliAmp)

setACHint

public boolean setACHint(java.lang.String str)
Sets the hint for the voltage source.

Parameters:
str - the hint
Returns:
true if successful; false otherwise

setPixPerCell

public void setPixPerCell(int ppc)

setIVGraphType

public void setIVGraphType(boolean iv)


Visit the Davidson College Physlet Site for additional information.