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

Constructor Index

 o BaseCharge(int, int, int, int)
Constructor.

Method Index

 o draw(Graphics)
Draws the Base charge concentration plot in the supplied Graphics context g.
 o drawAxes(Graphics)
Draws the axes for the concentration plot.
 o drawMode(Graphics, String, int, int)
Idicates mode: cutoff, active, or saturation.
 o drawTitle(Graphics, String[], Rectangle)
Draw title within the specified rectangle.
 o getHeight()
Returns the height of this plot.
 o setConc0(double)
Sets the concentration at the first axis -- usually along the EB junction of BJT.
 o setConc1(double)
Sets the concentration at the second concentration axis -- usually the CB junction of BJT.
 o setConv(int, double)
Sets the conversion factor, between the physical concentration value and the screen scale for the concentration axis.
 o setLocation(int, int)
Sets the location of upper-left cornet of the drawing.
 o setUpRight(boolean)
Sets, if true, whether the axes are pointing Upward (if vertical plot) or to-the-Right (if horizontal plot).
 o setVertical(boolean)
Sets the orientation vertical or horizontal for the plot.
 o updatePolygon()
Updates the filled poligonal area for the Base charge.

Constructors

 o 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.

Methods

 o 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.

 o getHeight
 public int getHeight()
Returns the height of this plot. Height is along the y-axis of this Base charge plot.

 o setConc0
 public void setConc0(double y0)
Sets the concentration at the first axis -- usually along the EB junction of BJT.

 o setConc1
 public void setConc1(double y1)
Sets the concentration at the second concentration axis -- usually the CB junction of BJT.

 o 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.

 o 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.
 o 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
 o 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.
 o drawTitle
 public void drawTitle(Graphics g,
                       String title[],
                       Rectangle r)
Draw title within the specified rectangle.

 o draw
 public void draw(Graphics g)
Draws the Base charge concentration plot in the supplied Graphics context g.

 o drawAxes
 public void drawAxes(Graphics g)
Draws the axes for the concentration plot.

 o updatePolygon
 public void updatePolygon()
Updates the filled poligonal area for the Base charge.


All Packages  Class Hierarchy  This Package  Previous  Next  Index