All Packages Class Hierarchy This Package Previous Next Index
Class crw.circuit.symbol.Wire
java.lang.Object
|
+----crw.circuit.symbol.CktElement
|
+----crw.circuit.symbol.Wire
- public class Wire
- extends CktElement
Class to represent a Wire in circuit diagram. This class has provision
for attributes needed in a SPICE Schematic such as it name,
the Node number, and the CktElement's it is attached to.
- Version:
- 1.0
- Author:
- C.Wie
-
Wire()
- Constructor inits its two ports.
-
draw(Graphics)
- Draws the wire.
-
setNameAt(FontMetrics)
- Called by constructor or other public methods to init
the place where to put the name.
-
setVertical(boolean)
- Sets whether vertical or horizontal.
Wire
public Wire()
- Constructor inits its two ports.
setVertical
public void setVertical(boolean vert)
- Sets whether vertical or horizontal.
draw
public void draw(Graphics g)
- Draws the wire. presently it is blank impl.
- Overrides:
- draw in class CktElement
setNameAt
protected void setNameAt(FontMetrics fm)
- Called by constructor or other public methods to init
the place where to put the name.
- Overrides:
- setNameAt in class CktElement
All Packages Class Hierarchy This Package Previous Next Index