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

Constructor Index

 o BiasSymbol(Point, int)
Constructs the BiasSymbol object given the coordinate of upper-left corner and the length of line behind the triangle head.

Method Index

 o draw(Graphics)
Draws the BiasSymbol.
 o drawValue(Graphics)
place value at the RHS of head.
 o initNodes()
Overrides the initNodes.
 o initWires()
A blank implementation to override the abstract method.
 o prepare()
Prepares the Polygonal object for the head.
 o setNameAt(FontMetrics)
place name at the LHS of head.
 o setValue(String)
Sets value to the Bias Symbol.

Constructors

 o 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

Methods

 o draw
 public void draw(Graphics g)
Draws the BiasSymbol. It is always vertical with the head at top.

Overrides:
draw in class CktElement
 o drawValue
 public void drawValue(Graphics g)
place value at the RHS of head.

 o setValue
 public void setValue(String value)
Sets value to the Bias Symbol.

 o setNameAt
 protected void setNameAt(FontMetrics fm)
place name at the LHS of head.

Overrides:
setNameAt in class CktElement
 o initNodes
 protected void initNodes()
Overrides the initNodes. It is a blank implementation.

Overrides:
initNodes in class Symbol
 o initWires
 protected void initWires()
A blank implementation to override the abstract method.

Overrides:
initWires in class Symbol
 o 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