All Packages Class Hierarchy This Package Previous Next Index
Class crw.device.BaseCharge
java.lang.Object
|
+----crw.device.BaseCharge
- public class BaseCharge
- extends Object
Class to plot the Base Charge profile in any orientation
(N, S, E, W) and at any position on the screen.
- Version:
- 1.0 8/11/99
- Author:
- C.R.Wie
-
BaseCharge(int, int, int, int)
- Constructor.
-
draw(Graphics)
- Draws the Base charge concentration plot in the
supplied Graphics context g.
-
drawAxes(Graphics)
- Draws the axes for the concentration plot.
-
drawMode(Graphics, String, int, int)
- Idicates mode: cutoff, active, or saturation.
-
drawTitle(Graphics, String[], Rectangle)
- Draw title within the specified rectangle.
-
getHeight()
- Returns the height of this plot.
-
setConc0(double)
- Sets the concentration at the first axis -- usually along the EB junction
of BJT.
-
setConc1(double)
- Sets the concentration at the second concentration axis --
usually the CB junction of BJT.
-
setConv(int, double)
- Sets the conversion factor, between the physical concentration
value and the screen scale for the concentration axis.
-
setLocation(int, int)
- Sets the location of upper-left cornet of the drawing.
-
setUpRight(boolean)
- Sets, if true, whether the axes are pointing
Upward (if vertical plot) or to-the-Right (if horizontal plot).
-
setVertical(boolean)
- Sets the orientation vertical or horizontal for the plot.
-
updatePolygon()
- Updates the filled poligonal area for the Base charge.
BaseCharge
public BaseCharge(int x0,
int y0,
int w,
int h)
- Constructor.
- Parameters:
- x0 - right-hand-side of base line
- y0 - top-side of the base line
- w - width of base region
- h - height for the charge plot.
setLocation
public void setLocation(int x0,
int y0)
- Sets the location of upper-left cornet of the drawing.
It then initializes and updates the filled area for charge.
getHeight
public int getHeight()
- Returns the height of this plot. Height is along the y-axis
of this Base charge plot.
setConc0
public void setConc0(double y0)
- Sets the concentration at the first axis -- usually along the EB junction
of BJT.
setConc1
public void setConc1(double y1)
- Sets the concentration at the second concentration axis --
usually the CB junction of BJT.
setConv
public void setConv(int h,
double max)
- Sets the conversion factor, between the physical concentration
value and the screen scale for the concentration axis.
setVertical
public void setVertical(boolean vert)
- Sets the orientation vertical or horizontal for the plot.
- Parameters:
- vert - true for vertical plot, false for horizontal plot.
setUpRight
public void setUpRight(boolean ur)
- Sets, if true, whether the axes are pointing
Upward (if vertical plot) or to-the-Right (if horizontal plot).
- Parameters:
- ur - true for Upward (for vertical plot) or Right-ward (hori plot)
axes direction
drawMode
public void drawMode(Graphics g,
String mode,
int xmiddle,
int y)
- Idicates mode: cutoff, active, or saturation.
Draws horizontally, centered around x, and above y.
- Parameters:
- mode - 0=cutoff, 1=forward active, 2=saturation.
drawTitle
public void drawTitle(Graphics g,
String title[],
Rectangle r)
- Draw title within the specified rectangle.
draw
public void draw(Graphics g)
- Draws the Base charge concentration plot in the
supplied Graphics context g.
drawAxes
public void drawAxes(Graphics g)
- Draws the axes for the concentration plot.
updatePolygon
public void updatePolygon()
- Updates the filled poligonal area for the Base charge.
All Packages Class Hierarchy This Package Previous Next Index