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

Constructor Index

 o Wire()
Constructor inits its two ports.

Method Index

 o draw(Graphics)
Draws the wire.
 o setNameAt(FontMetrics)
Called by constructor or other public methods to init the place where to put the name.
 o setVertical(boolean)
Sets whether vertical or horizontal.

Constructors

 o Wire
 public Wire()
Constructor inits its two ports.

Methods

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

 o draw
 public void draw(Graphics g)
Draws the wire. presently it is blank impl.

Overrides:
draw in class CktElement
 o 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