circuit
Class LRCApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--edu.davidson.tools.SApplet
                                |
                                +--circuit.LRCApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, edu.davidson.tools.SStepable

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

See Also:
Serialized Form

Fields inherited from class edu.davidson.tools.SApplet
clock, dataConnections, dataListeners, dataSources, lock
 
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
LRCApplet()
           
 
Method Summary
 void destroy()
          Destroy all threads and cleanup the applet.
 void forward()
          Called when the clock stops in one-shot mode.
 java.lang.String getAppletInfo()
           
 int getCapacitorID()
          Get the ID for the capacitor.
 int getInductorID()
          Get the ID for the inductor.
 java.lang.String getParameter(java.lang.String key, java.lang.String def)
           
 java.lang.String[][] getParameterInfo()
           
 int getResistorID()
          Get the ID for the resistor.
 int getSourceID()
          Get the ID for the AC voltage source.
 void init()
           
 boolean setACHint(java.lang.String str)
           
 void setACVoltage(double v, boolean showV, boolean showPhase)
           
 void setAutoRefresh(boolean ar)
          Repaint whenevers the system parameters are changed.
 void setCapacitance(double c, boolean showC, boolean showV, boolean showPhase)
           
 boolean setCapacitorHint(java.lang.String str)
           
 void setDefault()
          Reset the clock to time=0.
 void setFrequency(double f)
           
 void setImpedanceGraphType(boolean igt)
           
 void setInductance(double l, boolean showL, boolean showV, boolean showPhase)
           
 boolean setInductorHint(java.lang.String str)
           
 void setPixPerCell(int ppc)
           
 void setResistance(double r, boolean showR, boolean showV, boolean showPhase)
           
 boolean setResistorHint(java.lang.String str)
           
 void setShowCheckBox(boolean scb)
           
 void setShowControls(boolean sc)
           
 void setShowGraph(boolean sg)
           
 boolean setVoltmeterHint(java.lang.String str)
           
 void start()
           
 void step(double dt, double t)
           
 void stop()
           
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, getClockID, getClockTime, getDataConnectionFromDL, getDataConnectionFromDS, getDataFromDS, getDataListener, getDataListener, getDataSource, getDataSource, getID, getRunningID, getSourceData, getSourceVariables, isAutoRefresh, isClockRunning, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setDt, setExternalClock, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stopClock, updateDataConnection, updateDataConnections
 
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, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LRCApplet

public LRCApplet()
Method Detail

destroy

public void destroy()
Destroy all threads and cleanup the applet.
Overrides:
destroy in class SApplet

forward

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

getAppletInfo

public final java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet

getCapacitorID

public final int getCapacitorID()
Get the ID for the capacitor. The ID can be used to make a connection to a data listener.
Returns:
int the indentifier

getInductorID

public final int getInductorID()
Get the ID for the inductor. The ID can be used to make a connection to a data listener.
Returns:
int the indentifier

getParameter

public java.lang.String getParameter(java.lang.String key,
                                     java.lang.String def)

getParameterInfo

public java.lang.String[][] getParameterInfo()
Overrides:
getParameterInfo in class java.applet.Applet

getResistorID

public final int getResistorID()
Get the ID for the resistor. The ID can be used to make a connection to a data listener.
Returns:
int the indentifier

getSourceID

public final int getSourceID()
Get the ID for the AC voltage source. The ID can be used to make a connection to a data listener.
Returns:
int the indentifier

init

public void init()
Overrides:
init in class java.applet.Applet

setACHint

public boolean setACHint(java.lang.String str)

setACVoltage

public void setACVoltage(double v,
                         boolean showV,
                         boolean showPhase)

setAutoRefresh

public void setAutoRefresh(boolean ar)
Description copied from class: SApplet
Repaint whenevers the system parameters are changed.
Overrides:
setAutoRefresh in class SApplet
Following copied from class: edu.davidson.tools.SApplet
Parameters:
autoRefresh - Automatic repaint?

setCapacitance

public void setCapacitance(double c,
                           boolean showC,
                           boolean showV,
                           boolean showPhase)

setCapacitorHint

public boolean setCapacitorHint(java.lang.String str)

setDefault

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

setFrequency

public void setFrequency(double f)

setImpedanceGraphType

public void setImpedanceGraphType(boolean igt)

setInductance

public void setInductance(double l,
                          boolean showL,
                          boolean showV,
                          boolean showPhase)

setInductorHint

public boolean setInductorHint(java.lang.String str)

setPixPerCell

public void setPixPerCell(int ppc)

setResistance

public void setResistance(double r,
                          boolean showR,
                          boolean showV,
                          boolean showPhase)

setResistorHint

public boolean setResistorHint(java.lang.String str)

setShowCheckBox

public void setShowCheckBox(boolean scb)

setShowControls

public void setShowControls(boolean sc)

setShowGraph

public void setShowGraph(boolean sg)

setVoltmeterHint

public boolean setVoltmeterHint(java.lang.String str)

start

public void start()
Overrides:
start in class java.applet.Applet

step

public void step(double dt,
                 double t)
Specified by:
step in interface edu.davidson.tools.SStepable

stop

public void stop()
Overrides:
stop in class java.applet.Applet

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page