All Packages Class Hierarchy This Package Previous Next Index
Class crw.circuit.symbol.BiasSymbol
java.lang.Object
|
+----crw.circuit.symbol.CktElement
|
+----crw.circuit.symbol.Symbol
|
+----crw.circuit.symbol.BiasSymbol
- public class BiasSymbol
- extends Symbol
Class to draw and provide other service for a DC Bias Symbol in
drawing circuits and Schematic capture in SPICE sim.
- Version:
- 1.0 8/11/99
- Author:
- C. R. Wie
-
BiasSymbol(Point, int)
- Constructs the BiasSymbol object given the coordinate of upper-left
corner and the length of line behind the triangle head.
-
draw(Graphics)
- Draws the BiasSymbol.
-
drawValue(Graphics)
- place value at the RHS of head.
-
initNodes()
- Overrides the initNodes.
-
initWires()
- A blank implementation to override the abstract method.
-
prepare()
- Prepares the Polygonal object for the head.
-
setNameAt(FontMetrics)
- place name at the LHS of head.
-
setValue(String)
- Sets value to the Bias Symbol.
BiasSymbol
public BiasSymbol(Point loc,
int tailLength)
- Constructs the BiasSymbol object given the coordinate of upper-left
corner and the length of line behind the triangle head.
- Parameters:
- loc - the upper-left corner of bounding box
- tailLength - the line length behind head
draw
public void draw(Graphics g)
- Draws the BiasSymbol. It is always vertical with the head at top.
- Overrides:
- draw in class CktElement
drawValue
public void drawValue(Graphics g)
- place value at the RHS of head.
setValue
public void setValue(String value)
- Sets value to the Bias Symbol.
setNameAt
protected void setNameAt(FontMetrics fm)
- place name at the LHS of head.
- Overrides:
- setNameAt in class CktElement
initNodes
protected void initNodes()
- Overrides the initNodes. It is a blank implementation.
- Overrides:
- initNodes in class Symbol
initWires
protected void initWires()
- A blank implementation to override the abstract method.
- Overrides:
- initWires in class Symbol
prepare
protected void prepare()
- Prepares the Polygonal object for the head.
- Overrides:
- prepare in class Symbol
All Packages Class Hierarchy This Package Previous Next Index