circuit
Class CircuitApplet

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.CircuitApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public final class CircuitApplet
extends SApplet

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
 
Constructor Summary
CircuitApplet()
           
 
Method Summary
 int addACSource(int i1, int j1, int i2, int j2)
           
 int addAmmeter(int i1, int j1, int i2, int j2)
           
 int addBattery(int i1, int j1, int i2, int j2)
           
 int addCapacitor(int i1, int j1, int i2, int j2)
           
 int addInductor(int i1, int j1, int i2, int j2)
           
 int addOnOffSwitch(int i1, int j1, int i2, int j2)
           
 int addPart(int i1, int j1, int i2, int j2)
           
 int addResistor(int i1, int j1, int i2, int j2)
           
 int addTransformer(int i1, int j1, int i2, int j2, boolean horz)
           
 int addVoltmeter(int i1, int j1, int i2, int j2)
           
 int addWire(int i1, int j1, int i2, int j2)
           
 java.lang.String getAppletInfo()
           
 java.lang.String[][] getParameterInfo()
           
 boolean setAmmeter(int id, double current, boolean showCurrent)
           
 boolean setBatteryEMF(int id, double emf, boolean showV)
           
 boolean setCapacitance(int id, double c, boolean showC, boolean showV, boolean showPhase)
           
 boolean setCurrent(int id, double c)
           
 void setDefault()
          Reset the clock to time=0.
 void setGridSize(int i, int j)
           
 boolean setHint(int id, java.lang.String str)
           
 boolean setInductance(int id, double l, boolean showL, boolean showV, boolean showPhase)
           
 boolean setLabel(int id, java.lang.String str)
           
 boolean setMilliAmp(int id, boolean showMilliAmp)
           
 boolean setPhaseDegree(int id, double p)
           
 void setPixPerCell(int ppc)
           
 boolean setResistance(int id, double r, boolean showR, boolean showV, boolean showPhase)
           
 boolean setSwitchOn(int id, boolean on)
           
 void setTitle(java.lang.String t)
           
 boolean setVolt(int id, double v)
           
 boolean setVoltmeter(int id, double voltage, boolean showV)
           
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, checkAppletNames, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, formatValue, forward, getAppletName, getClockID, getClockTime, getDataFromDS, getDataListener, getDataSource, getDataSource, getDebugLevel, getID, getSourceData, getSourceVariables, isClockRunning, isValidFunction, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, sendDataToListener, setAutoRefresh, 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, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, 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
 

Constructor Detail

CircuitApplet

public CircuitApplet()
Method Detail

getAppletInfo

public final java.lang.String getAppletInfo()

getParameterInfo

public java.lang.String[][] getParameterInfo()

setDefault

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

Overrides:
setDefault in class SApplet

setGridSize

public void setGridSize(int i,
                        int j)

setTitle

public void setTitle(java.lang.String t)

addCapacitor

public int addCapacitor(int i1,
                        int j1,
                        int i2,
                        int j2)

setCapacitance

public boolean setCapacitance(int id,
                              double c,
                              boolean showC,
                              boolean showV,
                              boolean showPhase)

addInductor

public int addInductor(int i1,
                       int j1,
                       int i2,
                       int j2)

setInductance

public boolean setInductance(int id,
                             double l,
                             boolean showL,
                             boolean showV,
                             boolean showPhase)

addResistor

public int addResistor(int i1,
                       int j1,
                       int i2,
                       int j2)

addPart

public int addPart(int i1,
                   int j1,
                   int i2,
                   int j2)

setResistance

public boolean setResistance(int id,
                             double r,
                             boolean showR,
                             boolean showV,
                             boolean showPhase)

addBattery

public int addBattery(int i1,
                      int j1,
                      int i2,
                      int j2)

setBatteryEMF

public boolean setBatteryEMF(int id,
                             double emf,
                             boolean showV)

addAmmeter

public int addAmmeter(int i1,
                      int j1,
                      int i2,
                      int j2)

setAmmeter

public boolean setAmmeter(int id,
                          double current,
                          boolean showCurrent)

addVoltmeter

public int addVoltmeter(int i1,
                        int j1,
                        int i2,
                        int j2)

setVoltmeter

public boolean setVoltmeter(int id,
                            double voltage,
                            boolean showV)

setVolt

public boolean setVolt(int id,
                       double v)

setCurrent

public boolean setCurrent(int id,
                          double c)

setPhaseDegree

public boolean setPhaseDegree(int id,
                              double p)

setLabel

public boolean setLabel(int id,
                        java.lang.String str)

setHint

public boolean setHint(int id,
                       java.lang.String str)

setMilliAmp

public boolean setMilliAmp(int id,
                           boolean showMilliAmp)

addOnOffSwitch

public int addOnOffSwitch(int i1,
                          int j1,
                          int i2,
                          int j2)

setSwitchOn

public boolean setSwitchOn(int id,
                           boolean on)

addTransformer

public int addTransformer(int i1,
                          int j1,
                          int i2,
                          int j2,
                          boolean horz)

addWire

public int addWire(int i1,
                   int j1,
                   int i2,
                   int j2)

addACSource

public int addACSource(int i1,
                       int j1,
                       int i2,
                       int j2)

setPixPerCell

public void setPixPerCell(int ppc)


Visit the Davidson College Physlet Site for additional information.