Class LissaCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----LissaCanvas

public class LissaCanvas
extends Canvas

Constructor Index

 o LissaCanvas(int, int)

Method Index

 o drawLissa(Graphics)
Draw a primary curve and a secondary curve using the random values from setVars() and the Lissajous algorithm given by Pickover.
 o paint(Graphics)
 o paintLissa()
This method is typically called from another class to do the drawing.
 o paintLissa(int, int, int, int, int, int)
This method is typically called from another class to do the drawing.
 o setVars()
Set variables scale, theta, phi, rep, r, and r2 to random values.

Constructors

 o LissaCanvas
 public LissaCanvas(int width,
                    int height)

Methods

 o setVars
 public void setVars()
Set variables scale, theta, phi, rep, r, and r2 to random values.

 o 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.

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o 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.

 o paintLissa
 public void paintLissa()
This method is typically called from another class to do the drawing.