All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class crw.circuit.symbol.BubbleSymbol

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

public class BubbleSymbol
extends Symbol
The bubble symbol in circuit diagrams. This class provides the drawing service and the standard info querry service that are available for all Symbols.

Version:
1.0 8/11/99
Author:
C.R.Wie

Constructor Index

 o BubbleSymbol()
Creates a bubble symbol with the bubble at 'North', and default location at 10, 10
 o BubbleSymbol(char, int, Point)
Constructs a Bubble with given orientation, size and location of upper-left corner of the bounding rectangle.

Method Index

 o draw(Graphics)
Draws the bubble symbol.
 o initNodes()
Called by constructor or other public methods to init the Node objs.
 o initWires()
Called by constructor or other public methods to init the wire objs.
 o prepare()
Called by constructor or other public methods to init the attributes of this symbol obj.
 o setNameAt(FontMetrics)
Called by constructor or other public methods.

Constructors

 o BubbleSymbol
 public BubbleSymbol()
Creates a bubble symbol with the bubble at 'North', and default location at 10, 10

 o BubbleSymbol
 public BubbleSymbol(char orient,
                     int size,
                     Point loc)
Constructs a Bubble with given orientation, size and location of upper-left corner of the bounding rectangle.

Parameters:
orient - 'N', 'S', 'E' or 'W'
size - radius of bubble in pixels, tail length is 2*size.
loc - position of upper-left corner of bounding rectangle.

Methods

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

Parameters:
g - on which to draw.
Overrides:
draw in class CktElement
 o initNodes
 protected void initNodes()
Called by constructor or other public methods to init the Node objs.

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

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

Overrides:
prepare in class Symbol
 o setNameAt
 protected void setNameAt(FontMetrics fm)
Called by constructor or other public methods. Specifies where to write the Name of this symbol.

Overrides:
setNameAt in class CktElement

All Packages  Class Hierarchy  This Package  Previous  Next  Index