public class WavePainter2D extends WavePainter
Modifier and Type | Method and Description |
---|---|
static WavePainter2D |
forColor(java.awt.Color color) |
void |
paint(java.awt.Graphics2D g,
double xStart,
double xEnd,
double y)
Paints a wave in given coordinate range.
|
void |
paint(java.awt.Graphics2D g,
int xStart,
int xEnd,
int y)
Paints a wave in given coordinate range.
|
public void paint(java.awt.Graphics2D g, int xStart, int xEnd, int y)
y
defines the lower boundary of painted wave.paint
in class WavePainter
public void paint(java.awt.Graphics2D g, double xStart, double xEnd, double y)
y
defines the lower boundary of painted wave.public static WavePainter2D forColor(java.awt.Color color)