All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graphing.IntegWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----graphing.GraphWindow
                           |
                           +----graphing.IntegWindow

public class IntegWindow
extends GraphWindow
IntegWindow is a GraphWindow designed to illustrate the approximation of the area under a curve by successive refinements of Riemann sums. The public variable n determines how many strips of the Riemann sum should be drawn. If the flag display is set, a value of the Riemann sum is shown in the corner.


Variable Index

 o display
If set, the window displays a numerical value of the Riemann sum.
 o leftSum
Toggle showing the left or right Riemann sums
 o MAX_STRIPS
 o MIN_STRIPS
 o n
The number of strips to draw.
 o sigFig
Number of significant figues the Riemann sum is computed to.

Constructor Index

 o IntegWindow()
 o IntegWindow(double, double, double, double)
 o IntegWindow(double, double, double, double, double, double)

Method Index

 o paint(Graphics)

Variables

 o leftSum
  public boolean leftSum
Toggle showing the left or right Riemann sums

 o MAX_STRIPS
  public final static int MAX_STRIPS
 o MIN_STRIPS
  public final static int MIN_STRIPS
 o n
  public int n
The number of strips to draw.

 o display
  public boolean display
If set, the window displays a numerical value of the Riemann sum.

 o sigFig
  public int sigFig
Number of significant figues the Riemann sum is computed to.

Constructors

 o IntegWindow
  public IntegWindow(double xMin,
                     double xMax,
                     double xScale,
                     double yMin,
                     double yMax,
                     double yScale)
 o IntegWindow
  public IntegWindow(double xMin,
                     double xMax,
                     double yMin,
                     double yMax)
 o IntegWindow
  public IntegWindow()

Methods

 o paint
  public void paint(Graphics g)
Overrides:
paint in class GraphWindow

All Packages  Class Hierarchy  This Package  Previous  Next  Index