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.
-
display
-
If set, the window displays a numerical value of the Riemann sum.
-
leftSum
- Toggle showing the left or right Riemann sums
-
MAX_STRIPS
-
-
MIN_STRIPS
-
-
n
- The number of strips to draw.
-
sigFig
- Number of significant figues the Riemann sum is computed to.
-
IntegWindow()
-
-
IntegWindow(double, double, double, double)
-
-
IntegWindow(double, double, double, double, double, double)
-
-
paint(Graphics)
-
leftSum
public boolean leftSum
- Toggle showing the left or right Riemann sums
MAX_STRIPS
public final static int MAX_STRIPS
MIN_STRIPS
public final static int MIN_STRIPS
n
public int n
- The number of strips to draw.
display
public boolean display
- If set, the window displays a numerical value of the Riemann sum.
sigFig
public int sigFig
- Number of significant figues the Riemann sum is computed to.
IntegWindow
public IntegWindow(double xMin,
double xMax,
double xScale,
double yMin,
double yMax,
double yScale)
IntegWindow
public IntegWindow(double xMin,
double xMax,
double yMin,
double yMax)
IntegWindow
public IntegWindow()
paint
public void paint(Graphics g)
- Overrides:
- paint in class GraphWindow
All Packages Class Hierarchy This Package Previous Next Index