org.jscience.physics.electricity.circuitry.elements
Class SevenSegElement

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.ChipElement
          extended by org.jscience.physics.electricity.circuitry.elements.SevenSegElement

public class SevenSegElement
extends ChipElement

DOCUMENT ME!


Field Summary
 java.awt.Color darkred
          DOCUMENT ME!
 
Fields inherited from class org.jscience.physics.electricity.circuitry.elements.ChipElement
bits, clockPointsX, clockPointsY, csize, cspc, cspc2, FLAG_SMALL, lastClock, pins, rectPointsX, rectPointsY, SIDE_E, SIDE_N, SIDE_S, SIDE_W, sizeX, sizeY
 
Fields inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
boundingBox, circuitFrame, curcount, current, flags, nodes, noDiagonal, volts, voltSource, x, x2, y, y2
 
Constructor Summary
SevenSegElement(int xx, int yy)
          Creates a new SevenSegElement object.
SevenSegElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new SevenSegElement object.
 
Method Summary
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 java.lang.String getChipName()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 int getVoltageSourceCount()
          DOCUMENT ME!
 void setColor(java.awt.Graphics g, int p)
          DOCUMENT ME!
 void setupPins()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.elements.ChipElement
doStep, drag, drawChip, dump, execute, getConnection, getInfo, getPost, hasGroundConnection, needsBits, reset, setCurrent, setPoints, setSize, setVoltageSource, stamp
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, canViewInScope, doAdjust, doDots, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getCurrent, getDumpClass, getEditInfo, getInternalNodeCount, getNode, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, isWire, move, movePoint, nonLinear, setBbox, setCircuitFrame, setEditValue, setNode, setNodeVoltage, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, startIteration, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

darkred

public java.awt.Color darkred
DOCUMENT ME!

Constructor Detail

SevenSegElement

public SevenSegElement(int xx,
                       int yy)
Creates a new SevenSegElement object.

Parameters:
xx - DOCUMENT ME!
yy - DOCUMENT ME!

SevenSegElement

public SevenSegElement(int xa,
                       int ya,
                       int xb,
                       int yb,
                       int f,
                       java.util.StringTokenizer st)
Creates a new SevenSegElement object.

Parameters:
xa - DOCUMENT ME!
ya - DOCUMENT ME!
xb - DOCUMENT ME!
yb - DOCUMENT ME!
f - DOCUMENT ME!
st - DOCUMENT ME!
Method Detail

getChipName

public java.lang.String getChipName()
DOCUMENT ME!

Overrides:
getChipName in class ChipElement
Returns:
DOCUMENT ME!

setupPins

public void setupPins()
DOCUMENT ME!

Specified by:
setupPins in class ChipElement

draw

public void draw(java.awt.Graphics g)
DOCUMENT ME!

Overrides:
draw in class ChipElement
Parameters:
g - DOCUMENT ME!

setColor

public void setColor(java.awt.Graphics g,
                     int p)
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
p - DOCUMENT ME!

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

getVoltageSourceCount

public int getVoltageSourceCount()
DOCUMENT ME!

Specified by:
getVoltageSourceCount in class ChipElement
Returns:
DOCUMENT ME!

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!