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
-
TwoTerm()
- Constructor to be called by subclass.
-
drawValue(Graphics)
- Draws the value.
-
getBottomOrRight()
- Returns the coordinate of the Bottom (if vertical) or
Right (if hori)
-
getTopOrLeft()
- Returns the coordinate of top (if vertical) or left (if hori).
-
initNodes()
- Inits the associated Node objects.
-
initWires()
- Inits the associated Wire objects.
-
isVertical()
- Returns whether vertical or horizontal.
-
prepare()
- Prepares other attributes.
-
setNameAt(FontMetrics)
- Place the symbol name ABOVE or LHS.
-
setVertical(boolean)
- Sets whether vertical or horizontal.
TwoTerm
protected TwoTerm()
- Constructor to be called by subclass.
setVertical
public void setVertical(boolean vert)
- Sets whether vertical or horizontal.
isVertical
public boolean isVertical()
- Returns whether vertical or horizontal.
drawValue
public void drawValue(Graphics g)
- Draws the value. Blank implementation.
prepare
protected void prepare()
- Prepares other attributes.
- Overrides:
- prepare in class Symbol
getTopOrLeft
public Point getTopOrLeft()
- Returns the coordinate of top (if vertical) or left (if hori).
getBottomOrRight
public Point getBottomOrRight()
- Returns the coordinate of the Bottom (if vertical) or
Right (if hori)
setNameAt
protected void setNameAt(FontMetrics fm)
- Place the symbol name ABOVE or LHS.
- Overrides:
- setNameAt in class CktElement
initNodes
protected void initNodes()
- Inits the associated Node objects.
- Overrides:
- initNodes in class Symbol
initWires
protected void initWires()
- Inits the associated Wire objects.
- Overrides:
- initWires in class Symbol
All Packages Class Hierarchy This Package Previous Next Index