All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class crw.circuit.symbol.GroundSymbol

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

public class GroundSymbol
extends Symbol
Class to draw Ground symbol in a circuit diagram.

Version:
1.0
Author:
C.Wie

Constructor Index

 o GroundSymbol(Point, int)
Constructor is supplied with the top middle location and length of the vertical line from the top middle point.

Method Index

 o draw(Graphics)
Draws the ground symbol.
 o initNodes()
Called by constructor or other public methods to init the associated Node objs.
 o initWires()
Called by constructor or other public methods to init the associated Wire objs.
 o prepare()
Called by constructor or other public methods to init the attributes.
 o setNameAt(FontMetrics)
Called by constructor or other public methods to init the Point obj to place the Name string at.

Constructors

 o GroundSymbol
 public GroundSymbol(Point loc,
                     int leadLength)
Constructor is supplied with the top middle location and length of the vertical line from the top middle point. The spacing of short hori lines are related to the lead length.

Parameters:
loc - top middle location
leadLength - length of the vertical line from the top middle point

Methods

 o draw
 public void draw(Graphics g)
Draws the ground symbol.

Overrides:
draw in class CktElement
 o initNodes
 protected void initNodes()
Called by constructor or other public methods to init the associated Node objs. Blank impl.

Overrides:
initNodes in class Symbol
 o initWires
 protected void initWires()
Called by constructor or other public methods to init the associated Wire objs. Blank impl.

Overrides:
initWires in class Symbol
 o prepare
 protected void prepare()
Called by constructor or other public methods to init the attributes.

Overrides:
prepare in class Symbol
 o setNameAt
 protected void setNameAt(FontMetrics fm)
Called by constructor or other public methods to init the Point obj to place the Name string at.

Overrides:
setNameAt in class CktElement

All Packages  Class Hierarchy  This Package  Previous  Next  Index