All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jschem.txtElement

java.lang.Object
   |
   +----jschem.electricElement
           |
           +----jschem.txtElement

public class txtElement
extends electricElement

Constructor Index

 o txtElement(int, int, int, int)

Method Index

 o paint(Graphics)
Can be called to allow the elements to draw them themselves.
 o toString(int)
Gives a SPICE line for a given instance number.

Constructors

 o txtElement
 public txtElement(int x,
                   int y,
                   int gr,
                   int r)

Methods

 o toString
 public String toString(int inst)
Gives a SPICE line for a given instance number.

Overrides:
toString in class electricElement
 o paint
 public void paint(Graphics g)
Can be called to allow the elements to draw them themselves. It draws the shapes in green, connected pins blue and unconnected pins in red. Additionally the net names of the pins (if available) are printed.

Parameters:
g - Graphics context to draw to
Overrides:
paint in class electricElement

All Packages  Class Hierarchy  This Package  Previous  Next  Index