Class LissaCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----LissaCanvas
- public class LissaCanvas
- extends Canvas
-
LissaCanvas(int, int)
-
-
drawLissa(Graphics)
- Draw a primary curve and a secondary curve using the
random values from setVars() and the Lissajous algorithm
given by Pickover.
-
paint(Graphics)
-
-
paintLissa()
- This method is typically called from another class to do the drawing.
-
paintLissa(int, int, int, int, int, int)
- This method is typically called from another class to do the drawing.
-
setVars()
- Set variables scale, theta, phi, rep, r, and r2 to random values.
LissaCanvas
public LissaCanvas(int width,
int height)
setVars
public void setVars()
- Set variables scale, theta, phi, rep, r, and r2 to random values.
drawLissa
protected void drawLissa(Graphics g)
- Draw a primary curve and a secondary curve using the
random values from setVars() and the Lissajous algorithm
given by Pickover.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
paintLissa
public void paintLissa(int scale,
int theta,
int phi,
int rep,
int r,
int r2)
- This method is typically called from another class to do the drawing.
Specific values are passed in for the variables.
paintLissa
public void paintLissa()
- This method is typically called from another class to do the drawing.