circuit
Class RCApplet

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

public final class RCApplet
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
 
Constructor Summary
RCApplet()
           
 
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.
 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 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 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)
           
 void setSourceVoltage(double v, boolean showV, boolean showPhase)
           
 boolean setVoltmeterHint(java.lang.String str)
           
 void start()
           
 void step(double dt, double t)
           
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, getClockID, 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, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stopClock, updateDataConnection, updateDataConnections, useMasterClock
 
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, stop
 
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, setCursor, 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, 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

RCApplet

public RCApplet()
Method Detail

getParameter

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

init

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

destroy

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

start

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

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

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

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

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

step

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

setPixPerCell

public void setPixPerCell(int ppc)

setDefault

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

setCapacitance

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

setResistance

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

setSourceVoltage

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

setCapacitorHint

public boolean setCapacitorHint(java.lang.String str)

setResistorHint

public boolean setResistorHint(java.lang.String str)

setACHint

public boolean setACHint(java.lang.String str)

setVoltmeterHint

public boolean setVoltmeterHint(java.lang.String str)

setFrequency

public void setFrequency(double f)

setShowControls

public void setShowControls(boolean sc)

setShowCheckBox

public void setShowCheckBox(boolean scb)

setShowGraph

public void setShowGraph(boolean sg)

setAutoRefresh

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

setImpedanceGraphType

public void setImpedanceGraphType(boolean igt)

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page