/** * wavelet.java * * Title: string - NMM * Description: * @author akilian * @version */ import java.awt.*; import java.awt.event.*; import java.applet.*; import java.lang.Math.*; import java.util.Vector; import java.io.*; import java.net.*; public class waveletinv extends java.applet.Applet implements Runnable{ // IMPORTANT: Source code between BEGIN/END comment pair will be regenerated // every time the form is saved. All manual changes will be overwritten. // BEGIN GENERATED CODE // member declarations // END GENERATED CODE boolean isStandalone = false; Dimension size; Image buffer; // The off-screen image for double-buffering Graphics bufferGraphics; // A Graphics object for the buffer Thread animator; // Thread that performs the animation boolean please_stop; int stepper = 0; int timer=0; int maxstepper = 10000; int startorder = (int)Math.pow(2,12); int last_x=80; int last_y=80; int last_mx; int last_my; int line =0; int xpos=0; int ypos=250; int order=4; float[] curvector = new float[startorder]; float[] oldvector = new float[startorder]; float[][] filtermat; float[][] orthomat; float c0 = (float)((1+ Math.sqrt(3))/(4*Math.sqrt(2))); float c1 = (float)((3+ Math.sqrt(3))/(4*Math.sqrt(2))); float c2 = (float)((3- Math.sqrt(3))/(4*Math.sqrt(2))); float c3 = (float)((1- Math.sqrt(3))/(4*Math.sqrt(2))); private Font font; int div; public waveletinv() { } // Retrieve the value of an applet parameter public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); } // Get info on the applet parameters public String[][] getParameterInfo() { return null; } // Get applet information public String getAppletInfo() { return "Applet Information"; } // Initialize the applet public void init() { try { initComponents(); } catch (Exception e) { e.printStackTrace(); } // double buffering size = this.size(); buffer = this.createImage(size.width, size.height); bufferGraphics = buffer.getGraphics(); please_stop = false; font = new Font("SansSerif", Font.BOLD,10); // figuring out the scale on x axis for the table int count = 1; while (count