All Packages Class Hierarchy This Package Previous Next Index
Class crw.circuit.GroundSymbol
java.lang.Object
|
+----crw.circuit.GroundSymbol
- public class GroundSymbol
- extends Object
- implements VisualElement
A Ground symbol for drawing circuit diagrams.
- Version:
- 0.0 3/31/1998
- Author:
- C.R.Wie
-
GroundSymbol()
-
-
GroundSymbol(int)
-
-
GroundSymbol(Point)
-
-
draw(Graphics)
- Draws the Ground symbol in the Graphics context.
-
getHeight()
-
-
getLocation()
- Returns the position of top-middle of this symbol.
-
getScale()
-
-
setLocation(int, int)
- Sets the position of the top middle.
-
setScale(int)
- Sets the scale 0 (smallest) thru 4 (largest).
GroundSymbol
public GroundSymbol()
GroundSymbol
public GroundSymbol(int scale)
GroundSymbol
public GroundSymbol(Point p)
- Parameters:
- p - the position of top middle.
draw
public void draw(Graphics g)
- Draws the Ground symbol in the Graphics context.
- Parameters:
- g - the Graphics context to draw this symbol.
setLocation
public void setLocation(int x,
int y)
- Sets the position of the top middle.
- Parameters:
- x - the x-coordinate
- y - the y-coordinate
getLocation
public Point getLocation()
- Returns the position of top-middle of this symbol.
- Returns:
- the position of top-middle.
setScale
public void setScale(int scale)
- Sets the scale 0 (smallest) thru 4 (largest). If outside this range,
the scale is set to 2 (default)
- Parameters:
- scale - the scale 0 -- 4
getScale
public int getScale()
- Returns:
- the current scale.
getHeight
public int getHeight()
- Returns:
- the overall height of this symbol.
All Packages Class Hierarchy This Package Previous Next Index