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
-
GroundSymbol(Point, int)
- Constructor is supplied with the top middle location and
length of the vertical line from the top middle point.
-
draw(Graphics)
- Draws the ground symbol.
-
initNodes()
- Called by constructor or other public methods to init
the associated Node objs.
-
initWires()
- Called by constructor or other public methods to init
the associated Wire objs.
-
prepare()
- Called by constructor or other public methods to init
the attributes.
-
setNameAt(FontMetrics)
- Called by constructor or other public methods to init
the Point obj to place the Name string at.
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
draw
public void draw(Graphics g)
- Draws the ground symbol.
- Overrides:
- draw in class CktElement
initNodes
protected void initNodes()
- Called by constructor or other public methods to init
the associated Node objs. Blank impl.
- Overrides:
- initNodes in class Symbol
initWires
protected void initWires()
- Called by constructor or other public methods to init
the associated Wire objs. Blank impl.
- Overrides:
- initWires in class Symbol
prepare
protected void prepare()
- Called by constructor or other public methods to init
the attributes.
- Overrides:
- prepare in class Symbol
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