public class LineAccumulator extends Object
LineAccumulator accumulates line drawing information and
then draws all accumulated lines together. It is used as contour lines accumulator
in Surface Plotter.| Modifier and Type | Method and Description |
|---|---|
void |
addLine(int x1,
int y1,
int x2,
int y2)
Adds a line to the accumulator.
|
void |
clearAccumulator()
Clears accumulator.
|
void |
drawAll(Graphics g)
Draws all accumulated lines.
|
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(Graphics g)
g - the graphics context to drawJas4pp 1.5 © Java Analysis Studio for Particle Physics