import javax.swing.*; import java.awt.Color; import java.awt.Graphics2D; import java.awt.FlowLayout; import java.awt.Dimension; import edu.jsu.leathrum.mathlets.shared.*; public class Grapher3dWires extends AMathlet { private class GraphPanel extends AGraphPanel3dWires { private class GraphCanvas extends AGraphCanvas3dWires { GraphModelWires model = new GraphModelWires(); public GraphCanvas(int initialWidth, int initialHeight) { super(initialWidth, initialHeight); } private Dimension size; private double xrez, yrez; private void drawCurve(double a, double b, double cc, boolean xdir) { double x, y, z, q; boolean connected=false; double orient = (cc c.zmax) || (z < c.zmin)) connected=false; else { if (connected) model.add(x, y, z); else { connected=true; model.newpath(); model.add(x, y, z); } } } } protected void drawNew() { double x, y; size = this.getPreferredSize(); xrez=(c.xmax-c.xmin)/((double) size.width); yrez=(c.ymax-c.ymin)/((double) size.width); model = new GraphModelWires(); for (x=c.xmin; x