All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class crw.circuit.symbol.TwoTerm

java.lang.Object
   |
   +----crw.circuit.symbol.CktElement
           |
           +----crw.circuit.symbol.Symbol
                   |
                   +----crw.circuit.symbol.TwoTerm

public abstract class TwoTerm
extends Symbol
Two terminal device. The index: 0=Top or Left, 1=Bottom or Right. It includes the Passive symbols.

Version:
1.0
Author:
C.Wie

Constructor Index

 o TwoTerm()
Constructor to be called by subclass.

Method Index

 o drawValue(Graphics)
Draws the value.
 o getBottomOrRight()
Returns the coordinate of the Bottom (if vertical) or Right (if hori)
 o getTopOrLeft()
Returns the coordinate of top (if vertical) or left (if hori).
 o initNodes()
Inits the associated Node objects.
 o initWires()
Inits the associated Wire objects.
 o isVertical()
Returns whether vertical or horizontal.
 o prepare()
Prepares other attributes.
 o setNameAt(FontMetrics)
Place the symbol name ABOVE or LHS.
 o setVertical(boolean)
Sets whether vertical or horizontal.

Constructors

 o TwoTerm
 protected TwoTerm()
Constructor to be called by subclass.

Methods

 o setVertical
 public void setVertical(boolean vert)
Sets whether vertical or horizontal.

 o isVertical
 public boolean isVertical()
Returns whether vertical or horizontal.

 o drawValue
 public void drawValue(Graphics g)
Draws the value. Blank implementation.

 o prepare
 protected void prepare()
Prepares other attributes.

Overrides:
prepare in class Symbol
 o getTopOrLeft
 public Point getTopOrLeft()
Returns the coordinate of top (if vertical) or left (if hori).

 o getBottomOrRight
 public Point getBottomOrRight()
Returns the coordinate of the Bottom (if vertical) or Right (if hori)

 o setNameAt
 protected void setNameAt(FontMetrics fm)
Place the symbol name ABOVE or LHS.

Overrides:
setNameAt in class CktElement
 o initNodes
 protected void initNodes()
Inits the associated Node objects.

Overrides:
initNodes in class Symbol
 o initWires
 protected void initWires()
Inits the associated Wire objects.

Overrides:
initWires in class Symbol

All Packages  Class Hierarchy  This Package  Previous  Next  Index