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

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

public class TextElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 int FLAG_BAR
          DOCUMENT ME!
 int FLAG_CENTER
          DOCUMENT ME!
 int size
          DOCUMENT ME!
 java.lang.String text
          DOCUMENT ME!
 
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
TextElement(int xx, int yy)
          Creates a new TextElement object.
TextElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new TextElement object.
 
Method Summary
 void drag(int xx, int yy)
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 java.lang.String dump()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 EditInfo getEditInfo(int n)
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 void setEditValue(int n, EditInfo ei)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, canViewInScope, doAdjust, doDots, doStep, drawPost, drawPost, drawPosts, drawValues, getBasicInfo, getCircuitFrame, getConnection, getCurrent, getDumpClass, getInternalNodeCount, getNode, getPost, getPower, getScopeUnits, getScopeValue, getVoltageDiff, getVoltageSource, getVoltageSourceCount, hasGroundConnection, isWire, move, movePoint, nonLinear, reset, setBbox, setCircuitFrame, setCurrent, setNode, setNodeVoltage, setPoints, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, setVoltageSource, stamp, startIteration, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public java.lang.String text
DOCUMENT ME!


size

public int size
DOCUMENT ME!


FLAG_CENTER

public final int FLAG_CENTER
DOCUMENT ME!

See Also:
Constant Field Values

FLAG_BAR

public final int FLAG_BAR
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

TextElement

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

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

TextElement

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

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

dump

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

Overrides:
dump in class CircuitElement
Returns:
DOCUMENT ME!

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!

drag

public void drag(int xx,
                 int yy)
DOCUMENT ME!

Overrides:
drag in class CircuitElement
Parameters:
xx - DOCUMENT ME!
yy - DOCUMENT ME!

draw

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

Specified by:
draw in class CircuitElement
Parameters:
g - DOCUMENT ME!

getEditInfo

public EditInfo getEditInfo(int n)
DOCUMENT ME!

Overrides:
getEditInfo in class CircuitElement
Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

setEditValue

public void setEditValue(int n,
                         EditInfo ei)
DOCUMENT ME!

Overrides:
setEditValue in class CircuitElement
Parameters:
n - DOCUMENT ME!
ei - DOCUMENT ME!

getInfo

public void getInfo(java.lang.String[] arr)
DOCUMENT ME!

Overrides:
getInfo in class CircuitElement
Parameters:
arr - DOCUMENT ME!

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!