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
-
BubbleSymbol()
- Creates a bubble symbol with the bubble at 'North',
and default location at 10, 10
-
BubbleSymbol(char, int, Point)
- Constructs a Bubble with given orientation, size and
location of upper-left corner of the bounding rectangle.
-
draw(Graphics)
- Draws the bubble symbol.
-
initNodes()
- Called by constructor or other public methods to init the Node objs.
-
initWires()
- Called by constructor or other public methods to init the wire objs.
-
prepare()
- Called by constructor or other public methods to init the
attributes of this symbol obj.
-
setNameAt(FontMetrics)
- Called by constructor or other public methods.
BubbleSymbol
public BubbleSymbol()
- Creates a bubble symbol with the bubble at 'North',
and default location at 10, 10
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.
draw
public void draw(Graphics g)
- Draws the bubble symbol.
- Parameters:
- g - on which to draw.
- Overrides:
- draw in class CktElement
initNodes
protected void initNodes()
- Called by constructor or other public methods to init the Node objs.
- Overrides:
- initNodes in class Symbol
initWires
protected void initWires()
- Called by constructor or other public methods to init the wire objs.
- Overrides:
- initWires in class Symbol
prepare
protected void prepare()
- Called by constructor or other public methods to init the
attributes of this symbol obj.
- Overrides:
- prepare in class Symbol
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