|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display2d.ContourAccumulator
public final class ContourAccumulator
Title: Contour
Description: The class LineAccumulator
accumulates line drawing information and
then draws all accumulated lines together. It is used as contour accumulator
in the contour plot.
The contour plot uses some code from the Surface Plotter package by Yanto Suryono.
Method Summary | |
---|---|
void |
addLine(int x1,
int y1,
int x2,
int y2)
Adds a line to the accumulator. |
void |
clearAccumulator()
Clears accumulator. |
void |
drawAll(java.awt.Graphics g)
Draws all accumulated lines. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addLine(int x1, int y1, int x2, int y2)
x1
- the first point's x coordinatey1
- the first point's y coordinatex2
- the second point's x coordinatey2
- the second point's y coordinatepublic void clearAccumulator()
public void drawAll(java.awt.Graphics g)
g
- the graphics context to draw
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |